Skip to content

Commit

Permalink
TA#56101 [IMP] partner_category_type (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
majouda authored Jun 5, 2024
1 parent 0da0d58 commit ad799a1
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion partner_category_type/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{
'name': 'Partner Category Type',
'version': '1.0.0',
'version': '1.0.3',
'author': 'Savoir-faire Linux',
'maintainer': 'Numigi',
'website': 'https://bit.ly/numigi-com',
Expand Down
26 changes: 26 additions & 0 deletions partner_category_type/views/res_partner.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,30 @@
</field>
</record>

<record id="view_partner_kanban_with_custom_category_fields" model="ir.ui.view">
<field name="name">Partner Form With Custom Category Fields</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.res_partner_kanban_view"/>
<field name="arch" type="xml">
<field name="function" position="after">
<field name="job_position_id"/>
</field>
<xpath expr="//div[@class='oe_kanban_details d-flex flex-column']//ul/li[1]" position="replace">
<li t-if="record.parent_id.raw_value and !record.job_position_id.raw_value">
<field name="parent_id"/>
</li>
</xpath>
<xpath expr="//div[@class='oe_kanban_details d-flex flex-column']//ul/li[2]" position="replace">
<li t-if="!record.parent_id.raw_value and record.job_position_id.raw_value">
<field name="job_position_id"/>
</li>
</xpath>
<xpath expr="//div[@class='oe_kanban_details d-flex flex-column']//ul/li[3]" position="replace">
<li t-if="record.parent_id.raw_value and record.job_position_id.raw_value">
<field name="job_position_id"/> at <field name="parent_id"/>
</li>
</xpath>
</field>
</record>

</odoo>

0 comments on commit ad799a1

Please sign in to comment.