Align invoice line tax field names
This commit is contained in:
+2
-15
@@ -126,13 +126,8 @@ class InvoiceLine(metaclass=PoolMeta):
|
||||
'on_change_with_product_type'
|
||||
)
|
||||
|
||||
itbis_invoiced_line = fields.Function(Monetary(
|
||||
"ITBIS Invoiced", currency='currency', digits='currency',
|
||||
states=_LINE_STATES),
|
||||
'get_itbis_invoiced_line'
|
||||
)
|
||||
itbis_line = fields.Function(Monetary(
|
||||
"ITBIS", currency='currency', digits='currency',
|
||||
"ITBIS Invoiced", currency='currency', digits='currency',
|
||||
states=_LINE_STATES),
|
||||
'get_itbis_line'
|
||||
)
|
||||
@@ -243,13 +238,9 @@ class InvoiceLine(metaclass=PoolMeta):
|
||||
return cls._round_amount(line, subtotal)
|
||||
return Decimal('0.0')
|
||||
|
||||
@classmethod
|
||||
def get_itbis_invoiced_line(cls, lines, name):
|
||||
return {l.id: cls._compute_tax_kind_amount(l, 'itbis') for l in lines}
|
||||
|
||||
@classmethod
|
||||
def get_itbis_line(cls, lines, name):
|
||||
return cls.get_itbis_invoiced_line(lines, name)
|
||||
return {l.id: cls._compute_tax_kind_amount(l, 'itbis') for l in lines}
|
||||
|
||||
@classmethod
|
||||
def get_itbis_withholding_line(cls, lines, name):
|
||||
@@ -275,10 +266,6 @@ class InvoiceLine(metaclass=PoolMeta):
|
||||
def get_line_total(cls, lines, name):
|
||||
return {l.id: cls._compute_line_total_amount(l) for l in lines}
|
||||
|
||||
@fields.depends(*_LINE_DEPENDS, methods=['on_change_with_amount'])
|
||||
def on_change_with_itbis_invoiced_line(self, name=None):
|
||||
return InvoiceLine._compute_tax_kind_amount(self, 'itbis')
|
||||
|
||||
@fields.depends(*_LINE_DEPENDS, methods=['on_change_with_amount'])
|
||||
def on_change_with_itbis_line(self, name=None):
|
||||
return InvoiceLine._compute_tax_kind_amount(self, 'itbis')
|
||||
|
||||
Reference in New Issue
Block a user