|
@ -7,37 +7,32 @@ |
|
|
inherit_id="web.external_layout_standard"> |
|
|
inherit_id="web.external_layout_standard"> |
|
|
|
|
|
|
|
|
<xpath expr="//img[@t-if='company.logo']" position="replace"> |
|
|
<xpath expr="//img[@t-if='company.logo']" position="replace"> |
|
|
<t t-if="'brand_id' in o.fields_get()"> |
|
|
|
|
|
<img t-if="o.brand_id" |
|
|
|
|
|
|
|
|
<t t-if="'brand_id' in o.fields_get() and o.brand_id"> |
|
|
|
|
|
<img t-if="o.brand_id.image" |
|
|
t-att-src="image_data_uri(o.brand_id.image)" |
|
|
t-att-src="image_data_uri(o.brand_id.image)" |
|
|
style="max_height: 45px;" alt="Logo"/> |
|
|
|
|
|
<img t-elif="company.logo" |
|
|
|
|
|
t-att-src="image_data_uri(company.logo)" |
|
|
|
|
|
style="max_height: 45px;" alt="Logo"/> |
|
|
|
|
|
|
|
|
style="max-height: 45px;" alt="Logo"/> |
|
|
</t> |
|
|
</t> |
|
|
<t t-else="else"> |
|
|
|
|
|
|
|
|
<t t-else=""> |
|
|
<img t-if="company.logo" |
|
|
<img t-if="company.logo" |
|
|
t-att-src="image_data_uri(company.logo)" |
|
|
t-att-src="image_data_uri(company.logo)" |
|
|
style="max_height: 45px;" alt="Logo"/> |
|
|
|
|
|
|
|
|
style="max-height: 45px;" alt="Logo"/> |
|
|
</t> |
|
|
</t> |
|
|
</xpath> |
|
|
</xpath> |
|
|
|
|
|
|
|
|
<xpath expr="//div[@t-field='company.partner_id']" position="replace"> |
|
|
<xpath expr="//div[@t-field='company.partner_id']" position="replace"> |
|
|
<t t-if="'brand_id' in o.fields_get()"> |
|
|
|
|
|
<div t-if="o.brand_id" t-field="o.brand_id" |
|
|
|
|
|
t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": true}'/> |
|
|
|
|
|
<div t-else="else" t-field="company.partner_id" |
|
|
|
|
|
|
|
|
<t t-if="'brand_id' in o.fields_get() and o.brand_id"> |
|
|
|
|
|
<div t-field="o.brand_id" |
|
|
t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": true}'/> |
|
|
t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": true}'/> |
|
|
</t> |
|
|
</t> |
|
|
<t t-else="else"> |
|
|
|
|
|
|
|
|
<t t-else=""> |
|
|
<div t-field="company.partner_id" |
|
|
<div t-field="company.partner_id" |
|
|
t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": true}'/> |
|
|
t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": true}'/> |
|
|
</t> |
|
|
</t> |
|
|
</xpath> |
|
|
</xpath> |
|
|
|
|
|
|
|
|
<xpath expr="//ul[hasclass('list-inline')]" position="replace"> |
|
|
<xpath expr="//ul[hasclass('list-inline')]" position="replace"> |
|
|
<t t-if="'brand_id' in o.fields_get()"> |
|
|
|
|
|
<ul t-if="o.brand_id" class="list-inline mb4"> |
|
|
|
|
|
|
|
|
<t t-if="'brand_id' in o.fields_get() and o.brand_id"> |
|
|
|
|
|
<ul class="list-inline mb4"> |
|
|
<li t-if="o.brand_id.phone" class="list-inline-item"> |
|
|
<li t-if="o.brand_id.phone" class="list-inline-item"> |
|
|
Phone: |
|
|
Phone: |
|
|
<span t-field="o.brand_id.phone"/> |
|
|
<span t-field="o.brand_id.phone"/> |
|
@ -52,7 +47,7 @@ |
|
|
</li> |
|
|
</li> |
|
|
</ul> |
|
|
</ul> |
|
|
</t> |
|
|
</t> |
|
|
<t t-else="else"> |
|
|
|
|
|
|
|
|
<t t-else=""> |
|
|
<ul t-if="company" class="list-inline mb4"> |
|
|
<ul t-if="company" class="list-inline mb4"> |
|
|
<li t-if="company.phone" |
|
|
<li t-if="company.phone" |
|
|
class="list-inline-item"> |
|
|
class="list-inline-item"> |
|
|