Skip to Content
Menu
This question has been flagged
1 Reply
2911 Views


I have a one2many field called "group" in which I can add a parent company to a new company and/or individual I create.


I would like to know where is it inside Odoo that I have to edit so that I could add a tab inside where I view the company that allows me to view what are the child companies of my parent company which I assigned in my "group" field.


Example

https://imgur.com/vXbwlO8


Avatar
Discard
Best Answer

Hi,

   You can add a page using xpath in the contacts form           


<record id="contact_view_extend" model="ir.ui.view">
<field name="name">res.partner.form</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='accounting']" position="after">
<page string="Groups">
<field name="group" >
<tree editable="bottom">
<!--fields here-->
</tree>
</field>
</page>
</xpath>
</field>
</record>
Avatar
Discard
Author

I see, thank you very much.

Im a bit confused with one thing, which would be the contacts form? Because I know how to edit the form to add a new contact, which is through the res.partner model, but I cant find the contacts form anywhere.

My apologies if this is a bit of a newbie question and thanks in advance.