Template
This commit is contained in:
@@ -894,6 +894,13 @@ class Sale(metaclass=PoolMeta):
|
||||
with Transaction().set_context(address_with_party=True):
|
||||
return self.invoice_address.full_address
|
||||
|
||||
@property
|
||||
def report_melya_buyer_block(self):
|
||||
return '\n'.join(filter(None, [
|
||||
'Buyer:',
|
||||
self.report_melya_buyer_address,
|
||||
]))
|
||||
|
||||
@property
|
||||
def report_melya_incoterm(self):
|
||||
parts = []
|
||||
|
||||
@@ -724,7 +724,6 @@
|
||||
<style:text-properties style:font-name="Arial1" fo:font-size="10pt" style:font-size-asian="10pt" style:font-size-complex="10pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P72" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties fo:clear="left"/>
|
||||
<style:text-properties style:font-name="Arial mt" fo:font-size="9pt" officeooo:paragraph-rsid="00345fb1" style:font-size-asian="9pt" style:font-size-complex="9pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P73" style:family="paragraph" style:parent-style-name="Standard">
|
||||
@@ -1813,8 +1812,7 @@
|
||||
<text:p text:style-name="P57"><text:tab/><text:tab/><text:span text:style-name="T39"><text:placeholder text:placeholder-type="text"><sale.report_melya_proforma_number></text:placeholder></text:span><text:tab/><text:tab/><text:tab/><text:span text:style-name="T39"><text:placeholder text:placeholder-type="text"><format_date(sale.sale_date, sale.party.lang) if sale.sale_date else ''></text:placeholder></text:span></text:p>
|
||||
<text:p text:style-name="P70"/>
|
||||
<text:p text:style-name="P72"/>
|
||||
<text:p text:style-name="P72">Buyer:</text:p>
|
||||
<text:p text:style-name="P7"><text:placeholder text:placeholder-type="text"><for each="line in sale.report_melya_buyer_address.splitlines()"></text:placeholder></text:p>
|
||||
<text:p text:style-name="P7"><text:placeholder text:placeholder-type="text"><for each="line in sale.report_melya_buyer_block.splitlines()"></text:placeholder></text:p>
|
||||
<text:p text:style-name="P7"><text:placeholder text:placeholder-type="text"><line></text:placeholder></text:p>
|
||||
<text:p text:style-name="P7"><text:placeholder text:placeholder-type="text"></for></text:placeholder></text:p>
|
||||
<text:p text:style-name="P52"/>
|
||||
|
||||
Reference in New Issue
Block a user