Odoo Help

0

How to add a many2one relation to a custom model

By
Daniel Keller
on 3/24/15, 1:11 PM 781 views

I try to add to an order a new attribute that relates to a custom many2one relation. The goal is to choose for each order one specific contract condition. I would like to manage those contract conditions in the database, so that I can easily manage them.

I sort of got fare. I can edit those conditions, assign them and get them properly printed. However, on the order form they are displayed in a wired way. Instead of the descirption-text of the condition, I see sort of a description of the associated record. So my question is, how to show the proper description attribute.

Instead of a well readable text, I get displayed some bizarre techinical description of the record. Such as "x_sale.order.contract_condition,1".

I opened this issue also on stackoverflow with additional screenshots that better explain the issue described here:
http://stackoverflow.com/questions/29238777/how-to-add-a-many2one-relation-to-a-custom-model



0
Daniel Keller
On 3/26/15, 11:46 AM

The case was answered here:

http://stackoverflow.com/questions/29238777/how-to-add-a-many2one-relation-to-a-custom-model

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 3/24/15, 1:11 PM
Seen: 781 times
Last updated: 3/26/15, 11:46 AM