Currently all the countries that match between odoo and AFIP list where set with the respective value. This commit add the AFIP code field to both tree (for consult) and form view (in developer mode only) to let the user the posibility to set/edit this field for any of the next cases: * need to consult the code. * need to be changed. * need to create a new country that exist in AFIP list and not in odoo and need to add the related AFIP code closes odoo/odoo#40532 X-original-commit: 1b95bfe202576583d6458c6bd1a707dd988e6d95 Signed-off-by: Josse Colpaert <jco@openerp.com>
33 lines
1.2 KiB
XML
33 lines
1.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<record id="view_res_country_form" model="ir.ui.view">
|
|
<field name="name">res.country.form</field>
|
|
<field name="model">res.country</field>
|
|
<field name="inherit_id" ref="base.view_country_form"/>
|
|
<field name="arch" type="xml">
|
|
<field name="code" position="after">
|
|
<field name="l10n_ar_afip_code" groups="base.group_no_one"/>
|
|
<field name="l10n_ar_natural_vat"/>
|
|
<field name="l10n_ar_legal_entity_vat"/>
|
|
<field name="l10n_ar_other_vat"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_res_country_tree" model="ir.ui.view">
|
|
<field name="name">res.country.tree</field>
|
|
<field name="model">res.country</field>
|
|
<field name="inherit_id" ref="base.view_country_tree"/>
|
|
<field name="arch" type="xml">
|
|
<field name="code" position="after">
|
|
<field name="l10n_ar_afip_code" groups="base.group_no_one"/>
|
|
<field name="l10n_ar_natural_vat"/>
|
|
<field name="l10n_ar_legal_entity_vat"/>
|
|
<field name="l10n_ar_other_vat"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|