Browse Source

pre-commit update

14.0
OCA-git-bot 5 years ago
committed by bosd
parent
commit
36764d3fc4
  1. 2
      partner_coc/data/res_partner_id_category_data.xml
  2. 11
      partner_coc/views/res_partner_view.xml

2
partner_coc/data/res_partner_id_category_data.xml

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="id_category_coc" model="res.partner.id_category">
<field name="code">coc</field>

11
partner_coc/views/res_partner_view.xml

@ -1,13 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Add coc_registration_number to res partner view -->
<record id="view_partner_form" model="ir.ui.view">
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="priority" eval="10"/>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="priority" eval="10" />
<field name="arch" type="xml">
<field name="category_id" position="after">
<field name="coc_registration_number" attrs="{'invisible': [('company_type','!=','company')]}"/>
<field
name="coc_registration_number"
attrs="{'invisible': [('company_type','!=','company')]}"
/>
</field>
</field>
</record>

Loading…
Cancel
Save