Add company pattern to multivalue calls

issue10162
review335761002
This commit is contained in:
Cédric Krier committed 2021-04-03 14:27:10 +02:00
1 parent 8129c4ca2e
commit a292e7ad09
2 files changed
+4 -3

No files matched your search

+3 -2
View File
@@ -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')
+1 -1
View File
@@ -647,7 +647,7 @@
<text:section text:style-name="Sect1" text:name="Section1">
<text:p text:style-name="P24"><text:soft-page-break/><text:span text:style-name="T6">Revision:</text:span><text:span text:style-name="T6"><text:placeholder text:placeholder-type="text">&lt;quotation.revision or &apos;&apos;&gt;</text:placeholder></text:span></text:p>
<text:p text:style-name="P23"><text:span text:style-name="T6">Reference: </text:span><text:span text:style-name="T6"><text:placeholder text:placeholder-type="text">&lt;quotation.reference or &apos;&apos;&gt;</text:placeholder></text:span></text:p>
<text:p text:style-name="P50">Customer Code: <text:placeholder text:placeholder-type="text">&lt;quotation.supplier.get_multivalue(&apos;customer_code&apos;, company=quotation.company) or &apos;&apos;&gt;</text:placeholder></text:p>
<text:p text:style-name="P50">Customer Code: <text:placeholder text:placeholder-type="text">&lt;quotation.supplier.get_multivalue(&apos;customer_code&apos;, company=quotation.company.id) or &apos;&apos;&gt;</text:placeholder></text:p>
<text:p text:style-name="P38"><text:span text:style-name="T6">Date: </text:span><text:span text:style-name="T6"><text:placeholder text:placeholder-type="text">&lt;format_date(today, quotation.supplier.lang)&gt;</text:placeholder></text:span></text:p>
<text:p text:style-name="P60">Delivery Address:</text:p>
<text:p text:style-name="P56"><text:placeholder text:placeholder-type="text">&lt;for each=&quot;line in quotation.delivery_full_address.splitlines()&quot;&gt;</text:placeholder></text:p>