Skip to content

Commit

Permalink
Habilitar "Informação Pessoal" para Contato "Empresa" popsolutions#20
Browse files Browse the repository at this point in the history
  • Loading branch information
MateusONunes committed Nov 9, 2021
1 parent de4ecfa commit 4582a06
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions bailaki/views/res_partner.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,24 @@
</field>
</record>

<record id="personal_information" model="ir.ui.view">
<!-- this inheritance only exists to remove the source code "attrs="{'invisible': [('is_company','=',True)]}"" -->
<!-- so that the "Personal Information" page always appears (regardless of the value of the "is_company" field)-->
<field name="name">Personal information page for contacts form</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="priority">2</field>
<field name="arch" type="xml">
<xpath expr="//page[@name='internal_notes']" position="after">
<page name="personal_information_page"
string="Personal Information-"
>
<group name="personal_information_group"/>
</page>
</xpath>
</field>
</record>

<record id="extra_image" model="ir.ui.view">
<field name="name">res.partner.image.page.form (in bailaki)</field>
<field name="model">res.partner</field>
Expand All @@ -53,8 +71,8 @@
<field name="arch" type="xml">
<xpath expr="//page[@name='internal_notes']" position="after">
<page name="extra_image_page"
string="Extra Image"
attrs="{'invisible': [('is_company','=',True)]}">
string="Extra Image">
<!-- attrs="{'invisible': [('is_company','=',True)]}"-->
<group name="extra_images" string="Extra Images">
<field name="res_partner_image_ids" class="o_bailaki_res_partner_image_list" context="{'default_name': name, 'default_res_partner_id': active_id}" nolabel="1">
<kanban string="Partner Images" class="o_attachments_previews">
Expand Down

0 comments on commit 4582a06

Please sign in to comment.