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!
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
|Asked: 7/25/13, 10:30 PM|
|Seen: 917 times|
|Last updated: 3/16/15, 8:10 AM|