Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I write a field in product.py:
'english_name':fields.char('English Name', size=128, select=True),
and I want to add this field in the sale.order.line. If I should write a realted ? I try to write like this in sale.py:
'product_eng_id': fields.related('english_name','product_eng_id', type = "many2one", relation = "product.product" , string = 'english name',store=False),
But it also show the "name" instead of "english_name"..I don't know what's wrong,maybe the relation is not product.product?..My fields.related have some problems?
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
|Asked: 4/11/13, 1:52 AM|
|Seen: 2516 times|
|Last updated: 3/16/15, 8:10 AM|