Skip to content

Commit

Permalink
[IMP] partner_type_base: v18 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
CRogos committed Nov 28, 2024
1 parent 978433c commit aea9e99
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions partner_type_base/views/res_partner.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_simple_form" />
<field name="arch" type="xml">
<field name="is_company" position="after">
<field name="is_individual" invisible="1" />
<field name="can_be_parent" invisible="1" />
<field name="can_be_child" invisible="1" />
</field>
<field name="parent_id" position="attributes">
<attribute name="invisible">not can_be_child</attribute>
<attribute name="domain">[('can_be_parent', '=', True)]</attribute>
Expand All @@ -23,12 +18,6 @@
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="arch" type="xml">
<field name="is_company" position="after">
<field name="is_individual" invisible="1" />
<field name="is_address_readonly" invisible="1" />
<field name="can_be_parent" invisible="1" />
<field name="can_be_child" invisible="1" />
</field>
<field name="parent_id" position="attributes">
<attribute name="invisible">not can_be_child</attribute>
<attribute name="domain">[('can_be_parent', '=', True)]</attribute>
Expand All @@ -42,14 +31,6 @@
</xpath>

<!-- Modify inner contact form of child_ids -->
<xpath
expr="//field[@name='child_ids']/form//field[@name='name']"
position="before"
>
<field name="is_individual" invisible="1" />
<field name="is_address_readonly" invisible="1" />
<field name="is_company" invisible="1" />
</xpath>
<xpath
expr="//field[@name='child_ids']/form//field[@name='name']"
position="attributes"
Expand Down

0 comments on commit aea9e99

Please sign in to comment.