[IMP]: Default address design for invoice report and web

This commit is contained in:
Haresh Chavda 2018-08-22 12:24:53 +05:30
parent d0486ef121
commit 67e133b56b
2 changed files with 8 additions and 62 deletions

View File

@ -6,38 +6,9 @@
<t t-set="o" t-value="o.with_context({'lang':o.partner_id.lang})" /> <t t-set="o" t-value="o.with_context({'lang':o.partner_id.lang})" />
<div class="page"> <div class="page">
<div class="row"> <div class="row">
<div name="invoice_address" class="col-xs-6 col-xs-offset-6"> <div name="invoice_address" class="col-xs-5 col-xs-offset-7">
<table> <address t-field="o.partner_id"
<tr t-if="o.partner_id.name"> t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' />
<td colspan="4"><strong t-field="o.partner_id.name"/></td>
</tr>
<tr t-if="o.partner_id.street">
<td colspan="4"><span t-field="o.partner_id.street"/></td>
</tr>
<tr t-if="o.partner_id.street2">
<td colspan="4"><span t-field="o.partner_id.street2"/></td>
</tr>
<tr>
<td>
<span t-if="o.partner_id.city and o.partner_id.zip">
<span t-field="o.partner_id.city"/> - <span t-field="o.partner_id.zip"/>,
</span>
<span t-if="o.partner_id.city and not o.partner_id.zip">
<span t-field="o.partner_id.city"/>,
</span>
<span t-if="not o.partner_id.city and o.partner_id.zip">
<span t-field="o.partner_id.zip"/>,
</span>
<span t-if="o.partner_id.state_id">
<span t-field="o.partner_id.state_id.name"/>,
</span>
<span t-if="o.partner_id.country_id">
<span t-field="o.partner_id.country_id.name"/>
</span>
</td>
</tr>
</table>
<div t-if="o.partner_id.vat" class="mt16"><t t-esc="o.company_id.country_id.vat_label or 'TIN'"/>: <span t-field="o.partner_id.vat"/></div> <div t-if="o.partner_id.vat" class="mt16"><t t-esc="o.company_id.country_id.vat_label or 'TIN'"/>: <span t-field="o.partner_id.vat"/></div>
</div> </div>
</div> </div>

View File

@ -275,36 +275,11 @@
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<table style="margin-left:16px;"> <div class="col-xs-6" name="company_address">
<tr t-if="company.partner_id.name"> <span t-field="company.partner_id"
<td colspan="4"><strong t-field="company.partner_id.name"/></td> t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": true}'
</tr> style="border-bottom: 1px solid black; display:inline-block;"/>
<tr t-if="company.partner_id.street"> </div>
<td colspan="4"><span t-field="company.partner_id.street"/></td>
</tr>
<tr t-if="company.partner_id.street2">
<td colspan="4"><span t-field="company.partner_id.street2"/></td>
</tr>
<tr>
<td>
<span t-if="company.partner_id.city and company.partner_id.zip">
<span t-field="company.partner_id.city"/> - <span t-field="company.partner_id.zip"/>,
</span>
<span t-if="company.partner_id.city and not company.partner_id.zip">
<span t-field="company.partner_id.city"/>,
</span>
<span t-if="not company.partner_id.city and company.partner_id.zip">
<span t-field="company.partner_id.zip"/>,
</span>
<span t-if="company.partner_id.state_id">
<span t-field="company.partner_id.state_id.name"/>,
</span>
<span t-if="company.partner_id.country_id">
<span t-field="company.partner_id.country_id.name"/>
</span>
</td>
</tr>
</table>
</div> </div>
</div> </div>