mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
[FIX] intrastat_product : properly initialize notedict before calling _get_weight_and_supplunits
fixes OCA/intrastat-extrastat#224
This commit is contained in:
@@ -79,11 +79,8 @@ class AccountMove(models.Model):
|
||||
|
||||
def _get_intrastat_line_vals(self, line):
|
||||
vals = {}
|
||||
notedict = {
|
||||
"note": "",
|
||||
"line_nbr": 0,
|
||||
}
|
||||
decl_model = self.env["intrastat.product.declaration"]
|
||||
notedict, key2label = decl_model._prepare_notedict()
|
||||
if decl_model._is_product(line):
|
||||
hs_code = line.product_id.get_hs_code_recursively()
|
||||
if not hs_code:
|
||||
|
||||
Reference in New Issue
Block a user