how to change the type of a field in a model(a table) of the official module (hr) OpenERP -


i wanna use official hr module, wanna use own fields. need change type of many fields.

eg. in hr.employee, wanna change field:address_home_id type "many2one" "char". how can ?

i know 2 ways:

first:settings->custom->model->edit.. seems change correctly, not changed in view.

second: go source of module;change code:

'address_home_id': fields.many2one('res.partner.address', 'home address'), 

to

'address_home_id': fields.char('home address',size=32), 

but when create new record, failed!

can tell me how right?

thank in advance!

you can postgresql side. doing wrong. there many other relations or field related other records, cause error. try add new fields it.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -