Add company pattern to multivalue calls
issue10162 review335761002
This commit is contained in:
1 parent
8129c4ca2e
commit
a292e7ad09
2 files changed
+4
-3
No files matched your search
+3
-2
@@ -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
@@ -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"><quotation.revision or ''></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"><quotation.reference or ''></text:placeholder></text:span></text:p>
|
||||
<text:p text:style-name="P50">Customer Code: <text:placeholder text:placeholder-type="text"><quotation.supplier.get_multivalue('customer_code', company=quotation.company) or ''></text:placeholder></text:p>
|
||||
<text:p text:style-name="P50">Customer Code: <text:placeholder text:placeholder-type="text"><quotation.supplier.get_multivalue('customer_code', company=quotation.company.id) or ''></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"><format_date(today, quotation.supplier.lang)></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"><for each="line in quotation.delivery_full_address.splitlines()"></text:placeholder></text:p>
|
||||
|
||||
Reference in new issue
Block a user