Skip to content

Commit

Permalink
[IMP] crm_partner_company_group: show company_group_id on list and fo…
Browse files Browse the repository at this point in the history
…rm view
  • Loading branch information
CRogos committed Jan 3, 2025
1 parent 7e1d94d commit 2f92641
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions crm_partner_company_group/views/opportunity_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,51 @@
</filter>
</field>
</record>
<record id="crm_lead_view_form" model="ir.ui.view">
<field name="name">crm.lead.form</field>
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.crm_lead_view_form" />
<field name="arch" type="xml">
<xpath
expr="//group[@name='opportunity_partner']/field[@name='partner_id']"
position="after"
>
<field
name="company_group_id"
readonly="1"
invisible="not company_group_id"
/>
</xpath>
<xpath
expr="//group[@name='lead_partner']/field[@name='partner_id']"
position="after"
>
<field
name="company_group_id"
readonly="1"
invisible="not company_group_id"
/>
</xpath>
</field>
</record>
<record id="crm_case_tree_view_oppor" model="ir.ui.view">
<field name="name">crm.lead.tree.opportunity</field>
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.crm_case_tree_view_oppor" />
<field name="arch" type="xml">
<field name="partner_id" position="after">
<field name="company_group_id" optional="hide" />
</field>
</field>
</record>
<record id="crm_case_tree_view_leads" model="ir.ui.view">
<field name="name">crm.lead.tree.lead</field>
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.crm_case_tree_view_leads" />
<field name="arch" type="xml">
<field name="partner_id" position="after">
<field name="company_group_id" optional="hide" />
</field>
</field>
</record>
</odoo>

0 comments on commit 2f92641

Please sign in to comment.