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

Hello

I am using the following code to add a tab in Customer 


<notebook position="inside">

<page string="GPS Units">

<field name="boxen_ids" colspan="4" />

</page>

</notebook>


This gives all the heading in my GPS unit view

For example: in the module GPS units it lists the customer name. However I don't need this under the customer as I already know the name. Is there a code to just pass headings I need and not all under the list view in GPS Units? 

Avatar
Discard
Author Best Answer

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.


Avatar
Discard
Related Posts Replies Views Activity
1
Aug 23
12546
1
Aug 23
11050
1
Jul 23
7226
4
Apr 23
8676
2
Feb 23
17594