Hi, I want to open the child contacts from the company form in new view. Like in the invoice form for example, when in the invoice form click on the company name, the new view will open with breadcrumbs style , how to make the same for the company form? Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
3384
Views
Hi there,
You may use below code. It will work accordingly
<record model="ir.ui.view" id="partner_vendor_form_view">
<field name="name">res.partner.with.buttonsfield>
<field name="model">res.partnerfield>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<data>
<xpath expr="//field[@name='child_ids']/kanban/field[@name='name']" position="before">
<field name="id"/>
xpath>
<xpath expr="//field[@name='child_ids']/kanban/templates//div[@class='oe_kanban_details']/field[@name='name']"
position="before">
<a t-att-href="'#id='+record.id.raw_value+'&model=res.partner'"
class="fa fa-fw o_button_icon fa-external-link-square pull-right">
a>
xpath>
data>
field>record>
Note: I did that code in version 14 and its work properly. The only issue is you cannot move backward once you click on contact. it will open a separate view and the parent partner link will be disable
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Jun 17
|
11163 | ||
|
3
Mar 15
|
11810 | ||
|
1
Mar 15
|
2634 | ||
|
1
Mar 15
|
5358 | ||
|
2
Mar 15
|
6323 |