Skip to content

Commit

Permalink
[FIX] partner_firstname: Wrong contact type
Browse files Browse the repository at this point in the history
  • Loading branch information
AEstLo committed Nov 13, 2024
1 parent d9ec5d0 commit d3a8dec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion partner_firstname/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"name": "Partner first name and last name",
"summary": "Split first name and last name for non company partners",
"version": "17.0.1.0.3",
"version": "17.0.1.0.4",
"author": "Camptocamp, "
"Grupo ESOC Ingeniería de Servicios, "
"Tecnativa, "
Expand Down
8 changes: 4 additions & 4 deletions partner_firstname/views/res_partner.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
<xpath expr="//field[@id='individual']" position="attributes">
<attribute name="invisible">is_company</attribute>
<attribute name="readonly">not is_company</attribute>
<attribute name="required">type == 'contract' and is_company</attribute>
<attribute name="required">type == 'contact' and is_company</attribute>
</xpath>
<xpath expr="//field[@id='company']" position="attributes">
<attribute name="invisible">is_company == False</attribute>
<attribute name="readonly">not is_company</attribute>
<attribute name="required">type == 'contract' and is_company</attribute>
<attribute name="required">type == 'contact' and is_company</attribute>
</xpath>
<xpath expr="//h1//field[@id='company']/.." position="before">
<group invisible="is_company">
Expand All @@ -34,12 +34,12 @@
<xpath expr="//field[@id='individual']" position="attributes">
<attribute name="invisible">is_company</attribute>
<attribute name="readonly">not is_company</attribute>
<attribute name="required">type == 'contract' and is_company</attribute>
<attribute name="required">type == 'contact' and is_company</attribute>
</xpath>
<xpath expr="//field[@id='company']" position="attributes">
<attribute name="invisible">not is_company</attribute>
<attribute name="readonly">not is_company</attribute>
<attribute name="required">type == 'contract' and is_company</attribute>
<attribute name="required">type == 'contact' and is_company</attribute>
</xpath>
<xpath
expr="//div[hasclass('oe_title')]//field[@id='company']/.."
Expand Down

0 comments on commit d3a8dec

Please sign in to comment.