Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] add a button on kanban to open child partner #146

Open
wants to merge 1 commit into
base: 14.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion base_usability/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'summary': 'Better usability in base module',
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': ['base'],
'depends': ['base', 'contacts'],
'data': [
'security/group.xml',
'security/ir.model.access.csv',
Expand Down
9 changes: 9 additions & 0 deletions base_usability/views/res_partner.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@
<div attrs="{'invisible': [('same_vat_partner_id', '=', False)]}" position="attributes">
<attribute name="class">alert alert-warning</attribute>
</div>
<!-- Add a kanban button to open child partner -->
<xpath expr="//field[@name='child_ids']//kanban/templates/t/div" position="inside">
<div class="o_dropdown_kanban">
<a class="btn" role="button" title="Open"
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'">
<span class="fa fa-external-link" />
</a>
</div>
</xpath>
</field>
</record>

Expand Down