From 8eea0020b74588c630079a456de9c016121bb892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 5 Jan 2024 01:36:06 +0100 Subject: [PATCH] Initialize Model attributes of EDocument UN/CEFACT Invoice The super __init__ method must be called to set some attributes used by Model. Closes #12895 --- modules/edocument_uncefact/edocument.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/edocument_uncefact/edocument.py b/modules/edocument_uncefact/edocument.py index 28d257ed02..e73a344346 100644 --- a/modules/edocument_uncefact/edocument.py +++ b/modules/edocument_uncefact/edocument.py @@ -65,6 +65,7 @@ class Invoice(Model): def __init__(self, invoice): pool = Pool() Invoice = pool.get('account.invoice') + super().__init__() if int(invoice) >= 0: invoice = Invoice(int(invoice)) with Transaction().set_context(language=invoice.party_lang):