intrastat_product 14.0.1.4.1
This commit is contained in:
Luc De Meyer
2021-11-09 21:34:18 +01:00
committed by Víctor Martínez
parent 7e6e7226d5
commit 3abf5c6811
2 changed files with 4 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
{
"name": "Intrastat Product",
"version": "14.0.1.4.0",
"version": "14.0.1.4.1",
"category": "Intrastat",
"license": "AGPL-3",
"summary": "Base module for Intrastat Product",

View File

@@ -119,7 +119,9 @@ class AccountMoveLine(models.Model):
intrastat_line = self.move_id.intrastat_line_ids.filtered(
lambda r: r.invoice_line_id == rec
)
rec.hs_code_id = intrastat_line.hs_code_id or rec.get_hs_code_recursively()
rec.hs_code_id = (
intrastat_line.hs_code_id or rec.product_id.get_hs_code_recursively()
)
class AccountMoveIntrastatLine(models.Model):