I'd like to have a type of partner, like ice cream truck owners, or beauticians about which I collect additional information. Would you suggest I add a type_of_partner field in res.partner, or create a new table beauty.partner with the new fields and partner_id to keep the typical partner information like name, address...
Just add a new profession type field to
res.partner ( a selection )
And then add additional tabs to the form notebook, one for each profession type, in these tabs you can put their respective additional information fields.
You can then show or hide all the profession additional information tabs except one, depending on the value of the profession type field.
- Make sure you update the state of the form ( hide the unnecessary form tabs ) if the value of the profession type is changed ( use the onchange event )
- Make sure to clear the old values if the profession was changed ( do this when the user saves, not on the onchange event, because perhaps they want to cancel the changes )
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: 10/6/13, 10:33 AM|
|Seen: 938 times|
|Last updated: 3/16/15, 8:10 AM|