This is probably a better example of what I need. I have a customer profile module and the list view code is here:
<record id="profile_add_tree_view" model="ir.ui.view">
<field name="name">profile.add.tree.view</field>
<field name="view_type">tree</field>
<field name="model">profile.add</field>
<field name="arch" type="xml">
<tree string="Profile">
<field name="res_partner_id"/>
<field name="status_id"/>
<field name="anzahl" />
<field name="grund_ids" />
</tree>
</field>
</record>
When I try to add this to the Customer view, it gives me all the columns, but I would like to be able to show only the columns I needed:
code:
<record id="base_view_partner_form" model="ir.ui.view">
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<notebook position="inside">
<page string="Profil">
<field name="profile_ids" colspan="4" />
</page>
</notebook>
</field>
</record>
Is there a way to pass selected columns while keeping a different set of columns in the list view? I tried to create a second tree view to a class that doesn't include res.partner but Odoo doesn't like that. Any help here would be really appreciated.