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.

1

How to add the one2many attributes in the tree view?

By
Drees Far
on 12/16/15, 10:15 AM 581 views

Hello everybody:

Please i have a one2many field in one class which points to a second class. And in my Xml here is what i have done:

Form View:

age string="Journal Des Exceptions">

<field name="journal_exception_ids">

<tree string="Input Data" editable="bottom">

<field name="create_date"/>

<field name="name"/>

<field name="model_id"/>

<field name="res_id"/>

<field name="user_id"/>

<field name="method"/>

<field name="old_value"/>

<field name="old_value_text"/>

<field name="new_value"/>

<field name="new_value_text"/>

<field name="field_name"/>

<field name="field_description"/>

But in my tree view:

I want to display the data of the second class:

<field name="create_date"/>

<field name="name"/>

<field name="model_id"/>

<field name="res_id"/>

<field name="user_id"/>

<field name="method"/>

<field name="old_value"/>

<field name="old_value_text"/>

<field name="new_value"/>

<field name="new_value_text"/>

<field name="field_name"/>

<field name="field_description"/>

Can anyone help please.

Can you please explain what exactly you need? You want to have tree view of a one2many field in the form view?

Akhil P Sivan
on 12/16/15, 11:22 AM

No i want to have tree view of a one2many field in the tree view

Drees Far
on 12/16/15, 11:35 AM

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: 12/16/15, 10:15 AM
Seen: 581 times
Last updated: 1/18/16, 3:23 PM