[14.0][FIX]intrastat_product_declaration - fix amount by removing legacy currency conversion

This commit is contained in:
Luc De Meyer
2021-12-26 20:55:48 +01:00
parent 6344a5f996
commit dbf9aecbfa

View File

@@ -400,16 +400,6 @@ class IntrastatProductDeclaration(models.Model):
return weight, suppl_unit_qty
def _get_amount(self, inv_line, notedict):
invoice = inv_line.move_id
amount = invoice.currency_id._convert(
inv_line.price_subtotal,
self.company_id.currency_id,
self.company_id,
invoice.date,
)
return amount
def _get_region(self, inv_line, notedict):
"""
For supplier invoices/refunds: if the invoice line is linked