From 8f824d3d2a8ed37d9c48426de4058c8bf2619dea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 5 Dec 2025 10:03:01 +0100 Subject: [PATCH] Fix typo in super call of _parse_2_line_reference Closes #14407 --- modules/edocument_ubl/edocument.py | 4 ++-- modules/edocument_ubl/tests/scenario_ubl_2_invoice_parse.rst | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/edocument_ubl/edocument.py b/modules/edocument_ubl/edocument.py index b9849c4e43..f79d96bbb8 100644 --- a/modules/edocument_ubl/edocument.py +++ b/modules/edocument_ubl/edocument.py @@ -1021,8 +1021,8 @@ class Invoice_Purchase(metaclass=PoolMeta): PurchaseLine = pool.get('purchase.line') UoM = pool.get('product.uom') - origin = super()._parse_2_item_reference( - line_reference, line, supplier=supplier) + origin = super()._parse_2_line_reference( + line_reference, line, company, supplier=supplier) if origin: return origin if not line or not line.product or not line.unit: diff --git a/modules/edocument_ubl/tests/scenario_ubl_2_invoice_parse.rst b/modules/edocument_ubl/tests/scenario_ubl_2_invoice_parse.rst index 7326b9de79..85390095fc 100644 --- a/modules/edocument_ubl/tests/scenario_ubl_2_invoice_parse.rst +++ b/modules/edocument_ubl/tests/scenario_ubl_2_invoice_parse.rst @@ -18,7 +18,7 @@ Imports:: Activate modules:: - >>> modules = ['edocument_ubl', 'account_invoice'] + >>> modules = ['edocument_ubl', 'account_invoice', 'purchase'] >>> if cash_rounding: ... modules.append('account_cash_rounding') >>> config = activate_modules(modules, create_company, create_chart)