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.
How do you change the string on an inherited field in a class? (I know how to override in view, but want all instances changed)
According to read-the-docs at https://media.readthedocs.org/pdf/odoo-new-api-guide-line/latest/odoo-new-api-guide-line.pdf :
One of the new features of the API is to be able to change only one attribute of the field:
name = fields.Char(string=’New Value’)
So i do this in my_res_partner.py:
_inherit = 'res.partner'
is_company = fields.Boolean(string='Company')
AND IT DOES NOT CHANGE THE STRING? Why?
Field inheritance is still not working for me! I've tried it again and can't figure it out. See:
for my detailed experience and frustration with this problem. Hardikgiri's advice for xml views containing string overrides was helpful in that instance but in the link above you will see that I'm not dealing with that; just pure fied inheritance and it's buggy. Please help if you can.
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: 1/22/15, 10:41 PM|
|Seen: 659 times|
|Last updated: 3/16/15, 8:10 AM|