Add related field intrastat_fiscal_position on account.move

This commit is contained in:
Alexis de Lattre
2021-01-05 23:42:48 +01:00
parent 960f22ba52
commit 1db800dac2
5 changed files with 19 additions and 6 deletions

View File

@@ -2,7 +2,6 @@
# Copyright 2009-2020 Noviat (http://www.noviat.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import base64
import logging
from io import BytesIO
from sys import exc_info
@@ -78,7 +77,7 @@ class IntrastatCommon(models.AbstractModel):
"name": filename,
"res_id": self.id,
"res_model": self._name,
"datas": base64.encodebytes(xml_bytes),
"raw": xml_bytes,
}
)
return attach.id