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 wanna use the official hr module, But I wanna use my own fields. So I need to change the type of many fields.
eg. In the hr.employee, I wanna change the field:address_home_id from type "many2one" to "char". How can I do it ?
I know two ways:
settings->custom->model->edit.. It seems that I change it correctly, But it is not changed in the view.
Second: go to the source of the module;change the code:
'address_home_id': fields.many2one('res.partner.address', 'Home Address'),
'address_home_id': fields.char('Home Address',size=32),
But when I create a new record, failed!
Can somebody tell me how to get it right?
Thank you in advance!
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: 7/25/13, 10:30 PM|
|Seen: 1344 times|
|Last updated: 3/16/15, 8:10 AM|