I’d like to add a field to project.project.form that shows a field I’ve defined in the res.partner model called ‘x_client_code’.
If I just add the field I get a validate error when I try to save the view. I must need to tell it where to find the info, but I don’t know how.
Here’s a link to the code: http://pastebin.com/TSnhUwgM.
Can anyone help please? Thanks.
You have to first take a field(type depends on which data you want to show) in project.project and then
1) either you can fill its field(field in project.project) value when the original field is bieng updated(in write or create method of original fields master) or
2) you can override the Read method of project.project and write the original fields data into this field
(Note: prefer to go with first menthod)
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: 4/8/15, 8:31 PM|
|Seen: 1263 times|
|Last updated: 5/15/15, 7:45 AM|