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'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
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: 10/6/13, 10:33 AM|
|Seen: 1037 times|
|Last updated: 3/16/15, 8:10 AM|