Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] account: fix PO line matching on XML bill
Steps to reproduce: - Install Accounting and Purchase - Install a localization that supports electronic invoice (e.g. l10n_it_edi) - Switch to a company with that localization - Go to Purchase and create a PO: * Vendor: Vendor X * Product: Product X * Unit Price: 50.00 - Create an electronic bill in XML format with: * a reference to PO name * the same partner than the PO * the same line than the PO, except for the price (e.g. 200.00) - Go to "Accounting / Vendors / Bills" - Upload the XML bill Issue: The bill is generated and linked to the PO, but the price and subtotal on the bill line is the one coming from the PO instead of the one coming from the XML. Values coming from an imported XML should not be overridden by values found in matching PO. Cause: "timeout" parameter is wrongly passed as "prefer_purchase_line" parameter in a call to "_find_and_set_purchase_orders" method. opw-3707731 closes odoo#159139 X-original-commit: fc6b71c Signed-off-by: Claire Bretton (clbr) <clbr@odoo.com> Signed-off-by: Anh Thao Pham (pta) <pta@odoo.com>
- Loading branch information