From a292e7ad094a5c93d4fb31d27eadd298660b6f6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 3 Apr 2021 14:27:10 +0200 Subject: [PATCH] Add company pattern to multivalue calls issue10162 review335761002 --- purchase.py | 5 +++-- quotation.fodt | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/purchase.py b/purchase.py index 2f18518a48..562c94c2ce 100644 --- a/purchase.py +++ b/purchase.py @@ -192,8 +192,9 @@ class Quotation(Workflow, ModelSQL, ModelView): if quotation.number: quotation.revision += 1 else: - quotation.number = ( - config.purchase_request_quotation_sequence.get()) + quotation.number = config.get_multivalue( + 'purchase_request_quotation_sequence', + company=quotation.company.id).get() cls.save(quotations) @fields.depends('supplier') diff --git a/quotation.fodt b/quotation.fodt index 073e13b4f3..7d4a41b646 100644 --- a/quotation.fodt +++ b/quotation.fodt @@ -647,7 +647,7 @@ Revision:<quotation.revision or ''> Reference: <quotation.reference or ''> - Customer Code: <quotation.supplier.get_multivalue('customer_code', company=quotation.company) or ''> + Customer Code: <quotation.supplier.get_multivalue('customer_code', company=quotation.company.id) or ''> Date: <format_date(today, quotation.supplier.lang)> Delivery Address: <for each="line in quotation.delivery_full_address.splitlines()">