mirror of
https://github.com/bringout/oca-ocb-l10n_americas.git
synced 2026-04-27 10:32:05 +02:00
19.0 vanilla
This commit is contained in:
parent
89c6e82fe7
commit
1b82c20a58
572 changed files with 43570 additions and 53303 deletions
|
|
@ -1,34 +1,52 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<template id="pst_external_layout">
|
||||
<li t-if="company.account_fiscal_country_id.code == 'CA' and company.l10n_ca_pst">
|
||||
PST: <span t-field="company.l10n_ca_pst"/>
|
||||
</li>
|
||||
</template>
|
||||
|
||||
<template id="l10n_ca_external_layout_standard" inherit_id="web.external_layout_standard">
|
||||
<xpath expr="//div[hasclass('row')][last()]" position="after">
|
||||
<t t-if="company.account_fiscal_country_id.code == 'CA' and company.l10n_ca_pst" class="mt16">
|
||||
<div>PST: <span t-field="company.l10n_ca_pst"/></div>
|
||||
</t>
|
||||
<xpath expr="//ul[@name='company_address_list']" position="inside">
|
||||
<t t-call="l10n_ca.pst_external_layout"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="l10n_ca_external_layout_bold" inherit_id="web.external_layout_bold">
|
||||
<xpath expr="//div[hasclass('row')]" position="after">
|
||||
<t t-if="company.account_fiscal_country_id.code == 'CA' and company.l10n_ca_pst" class="mt16">
|
||||
<div>PST: <span t-field="company.l10n_ca_pst"/></div>
|
||||
</t>
|
||||
<xpath expr="//ul[@name='company_address_list']" position="inside">
|
||||
<t t-call="l10n_ca.pst_external_layout"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="l10n_ca_external_layout_boxed" inherit_id="web.external_layout_boxed">
|
||||
<xpath expr="//div[hasclass('row') and hasclass('mb8')]" position="after">
|
||||
<t t-if="company.account_fiscal_country_id.code == 'CA' and company.l10n_ca_pst" class="mt16">
|
||||
<div>PST: <span t-field="company.l10n_ca_pst"/></div>
|
||||
</t>
|
||||
<xpath expr="//ul[@name='company_address_list']" position="inside">
|
||||
<t t-call="l10n_ca.pst_external_layout"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="l10n_ca_external_layout_striped" inherit_id="web.external_layout_striped">
|
||||
<xpath expr="//div[hasclass('float-start') and hasclass('company_address')]" position="after">
|
||||
<t t-if="company.account_fiscal_country_id.code == 'CA' and company.l10n_ca_pst" class="mt16">
|
||||
<div>PST: <span t-field="company.l10n_ca_pst"/></div>
|
||||
</t>
|
||||
<xpath expr="//ul[@name='company_address_list']" position="inside">
|
||||
<t t-call="l10n_ca.pst_external_layout"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="l10n_ca_external_layout_bubble" inherit_id="web.external_layout_bubble">
|
||||
<xpath expr="//ul[@name='company_address_list']" position="inside">
|
||||
<t t-call="l10n_ca.pst_external_layout"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="l10n_ca_external_layout_wave" inherit_id="web.external_layout_wave">
|
||||
<xpath expr="//ul[@name='company_address_list']" position="inside">
|
||||
<t t-call="l10n_ca.pst_external_layout"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="l10n_ca_external_layout_folder" inherit_id="web.external_layout_folder">
|
||||
<xpath expr="//div[hasclass('o_folder_company_info')]" position="after">
|
||||
<div t-if="company.account_fiscal_country_id.code == 'CA' and company.l10n_ca_pst">
|
||||
PST: <span t-field="company.l10n_ca_pst"/>
|
||||
</div>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<field name="inherit_id" ref="base.view_company_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='vat']" position="after">
|
||||
<field name="l10n_ca_pst" attrs="{'invisible': [('country_code', '!=', 'CA')]}"/>
|
||||
<field name="l10n_ca_pst" invisible="country_code != 'CA'"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
|
|
|||
|
|
@ -4,12 +4,12 @@
|
|||
<record id="res_partner_form_inherit_ca" model="ir.ui.view">
|
||||
<field name="name">res.partner.form.inherit.l10n.ca</field>
|
||||
<field name="model">res.partner</field>
|
||||
<field name="inherit_id" ref="base.view_partner_form"/>
|
||||
<field name="inherit_id" ref="account.view_partner_property_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='vat']" position="after">
|
||||
<field name="l10n_ca_pst"/>
|
||||
<field name="l10n_ca_pst" invisible="'CA' not in fiscal_country_codes"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
</odoo>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue