Skip to content

Commit dd6f39b

Browse files
committed
[IMP] add a button on kanban to open child partner
1 parent de2e5f2 commit dd6f39b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

base_usability/views/res_partner.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@
2020
<div attrs="{'invisible': [('same_vat_partner_id', '=', False)]}" position="attributes">
2121
<attribute name="class">alert alert-warning</attribute>
2222
</div>
23+
<!-- Add a kanban button to open child partner -->
24+
<xpath expr="//field[@name='child_ids']//kanban/templates/t/div" position="inside">
25+
<div class="o_dropdown_kanban">
26+
<a class="btn" role="button" title="Open"
27+
t-att-href="'/web#id=' + record.id.raw_value + '&amp;action=%(contacts.action_contacts)d' + '&amp;menu_id=%(contacts.menu_contacts)d' + '&amp;view_type=form&amp;cids=1&amp;model=res.partner'">
28+
<span class="fa fa-external-link" />
29+
</a>
30+
</div>
31+
</xpath>
2332
</field>
2433
</record>
2534

0 commit comments

Comments
 (0)