mirror of
https://github.com/bringout/oca-ocb-l10n_americas.git
synced 2026-04-27 14:32:04 +02:00
19.0 vanilla
This commit is contained in:
parent
89c6e82fe7
commit
1b82c20a58
572 changed files with 43570 additions and 53303 deletions
|
|
@ -8,11 +8,11 @@
|
|||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='type_tax_use']" position="before">
|
||||
<field name="l10n_pe_edi_tax_code"
|
||||
attrs="{'invisible': [('country_code', '!=', 'PE')]}"/>
|
||||
invisible="country_code != 'PE'"/>
|
||||
<field name="l10n_pe_edi_unece_category"
|
||||
attrs="{'invisible': [('country_code', '!=', 'PE')]}"/>
|
||||
invisible="country_code != 'PE'"/>
|
||||
<field name="l10n_pe_edi_isc_type"
|
||||
attrs="{'invisible': ['|', ('l10n_pe_edi_tax_code', '!=', '2000'), ('country_code', '!=', 'PE')]}"/>
|
||||
invisible="l10n_pe_edi_tax_code != '2000' or country_code != 'PE'"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,51 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
|
||||
<template id="address_form_fields" inherit_id="portal.address_form_fields">
|
||||
<div id="div_state" position="after">
|
||||
<t t-if="res_company.country_id.code == 'PE'">
|
||||
<div
|
||||
id="div_city_id"
|
||||
class="col-lg-6 mb-3"
|
||||
t-att-style="(country and country.code != 'PE') and 'display:none;'"
|
||||
>
|
||||
<label class="col-form-label" for="city_id">City</label>
|
||||
<select id="city_id" name="city_id" class="form-select" data-init="1">
|
||||
<option value="">City...</option>
|
||||
<option
|
||||
t-foreach="state_cities"
|
||||
t-as="city"
|
||||
t-att-value="city.id"
|
||||
t-att-selected="city.id == partner_sudo.city_id.id"
|
||||
t-out="city.name"
|
||||
/>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div
|
||||
id="div_district"
|
||||
class="col-lg-6 mb-3"
|
||||
t-att-style="((country and country.code != 'PE') or not city) and 'display:none;'"
|
||||
>
|
||||
<label class="col-form-label" for="l10n_pe_district">District</label>
|
||||
<select
|
||||
id="l10n_pe_district"
|
||||
name="l10n_pe_district"
|
||||
class="form-select"
|
||||
data-init="1"
|
||||
>
|
||||
<option value="">District...</option>
|
||||
<option
|
||||
t-foreach="city_districts"
|
||||
t-as="district"
|
||||
t-att-value="district.id"
|
||||
t-att-selected="district.id == partner_sudo.l10n_pe_district.id"
|
||||
t-out="district.name"
|
||||
/>
|
||||
</select>
|
||||
</div>
|
||||
</t>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<odoo>
|
||||
<record model="ir.ui.view" id="view_res_bank_inherit_l10n_pe_bank">
|
||||
<field name="name">view.res.bank.inherit.l10n_pe_bank</field>
|
||||
<field name="model">res.bank</field>
|
||||
<field name="inherit_id" ref="base.view_res_bank_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='bic']" position="after">
|
||||
<field name="country_code" invisible="1"/>
|
||||
<field name="l10n_pe_edi_code" invisible="country_code != 'PE'"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue