'Subtract tax amount from price when corresponding "price included" taxes do not apply'

@api.model
def _fix_tax_included_price(self, price, prod_taxes, line_taxes):

    incl_tax = prod_taxes.filtered((lambda tax: ((tax not in line_taxes) and tax.price_include)))
    if incl_tax:
        return incl_tax.compute_all(price)['total_excluded']
    return price
