Skip to content

Commit

Permalink
[IMP] partner_identification: Add chatter in res.partner form pop-up
Browse files Browse the repository at this point in the history
  • Loading branch information
vehi-invitu committed Dec 18, 2024
1 parent ad6ac8e commit 09bb94c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 46 deletions.
37 changes: 24 additions & 13 deletions partner_identification/views/res_partner_id_number_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,32 @@
<field name="arch" type="xml">
<form string="Partner ID Numbers">
<sheet>
<group>
<field name="partner_id" />
<field name="category_id" />
<field name="name" />
<field name="partner_issued_id" />
<field name="date_issued" />
<field name="place_issuance" />
<field name="valid_from" />
<field name="valid_until" />
<field name="status" />
</group>
<div class="o_row">
<div class="o_col">
<group>
<field name="partner_id" />
<field
name="category_id"
options="{'no_open': True, 'no_create': True}"
/>
<field name="name" />
<field name="partner_issued_id" />
<field name="date_issued" />
<field name="place_issuance" />
</group>
</div>
<div class="o_low">
<group>
<field name="valid_from" />
<field name="valid_until" />
<field name="status" />
</group>
</div>
</div>
<separator colspan="4" string="Notes" />
<field name="comment" colspan="4" nolabel="1" />
</sheet>
<div class="oe_chatter">
<div class="oe_chatter" style="display:block;">
<field name="message_follower_ids" />
<field name="activity_ids" />
<field name="message_ids" />
Expand Down Expand Up @@ -54,5 +65,5 @@
action="action_partner_id_numbers_form"
id="menu_partner_id_numbers"
parent="contacts.res_partner_menu_config"
/>
/>
</odoo>
34 changes: 1 addition & 33 deletions partner_identification/views/res_partner_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,39 +15,7 @@
widget="one2many_list"
mode="tree,form"
context="{'default_partner_id': id}"
>
<form>
<sheet>
<div class="o_row">
<div class="o_col">
<group>
<field name="partner_id" />
<field name="category_id" options="{'no_open': True, 'no_create': True}"/>
<field name="name" />
<field name="partner_issued_id" />
<field name="date_issued" />
</group>
</div>
<div class="o_low">
<group>
<field name="place_issuance" />
<field name="valid_from" />
<field name="valid_until" />
<field name="status" />
</group>
</div>
</div>
<separator colspan="4" string="Commentaires" />
<field name="comment" colspan="4" nolabel="1" />
</sheet>
<div class="oe_chatter" style="display:block;">
<field name="message_follower_ids" />
<field name="activity_ids" />
<field name="message_ids" />
</div>

</form>
</field>
/>
</page>
</page>
</field>
Expand Down

0 comments on commit 09bb94c

Please sign in to comment.