Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Odoo 8 <notebook> : show only field required

By
Siobhan
on 5/5/15, 6:11 AM 574 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? 

0
Siobhan
On 5/13/15, 2:06 AM

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.


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 5/5/15, 6:11 AM
Seen: 574 times
Last updated: 5/13/15, 2:06 AM