From 994a021a0900ebbd59f183287ca1f9cb12074a84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 3 Jan 2022 22:50:57 +0100 Subject: [PATCH] Remove double TaxableMixin inheritage Sale line inherits already of TaxableMixin in sale module. issue11092 review372951002 --- sale.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/sale.py b/sale.py index c95170bf33..24718f3eac 100644 --- a/sale.py +++ b/sale.py @@ -4,7 +4,6 @@ from decimal import Decimal from trytond.i18n import gettext -from trytond.modules.account.tax import TaxableMixin from trytond.pool import Pool, PoolMeta from .exceptions import BadRequest @@ -171,18 +170,9 @@ class SaleShipmentCost(metaclass=PoolMeta): self.carrier = carrier.id if carrier else None -class Line(TaxableMixin, metaclass=PoolMeta): +class Line(metaclass=PoolMeta): __name__ = 'sale.line' - @property - def taxable_lines(self): - return [( - getattr(self, 'taxes', None) or [], - getattr(self, 'unit_price', None) or Decimal(0), - getattr(self, 'quantity', None) or 0, - None, - )] - @property def vsf_tax_amount(self): return sum(