Remove double TaxableMixin inheritage
Sale line inherits already of TaxableMixin in sale module. issue11092 review372951002 (grafted from 786127fbce8707839b286f8a178abc36e2039301) --HG-- branch : 6.0
This commit is contained in:
1 parent
67c8d691bf
commit
70fba08515
1 file changed
+1
-12
@@ -6,8 +6,6 @@ from decimal import Decimal
|
||||
from trytond.i18n import gettext
|
||||
from trytond.pool import PoolMeta, Pool
|
||||
|
||||
from trytond.modules.account.tax import TaxableMixin
|
||||
|
||||
from .exceptions import BadRequest
|
||||
from .web import split_name
|
||||
|
||||
@@ -170,18 +168,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(
|
||||
|
||||
Reference in new issue
Block a user