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):