Odoo Help
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.
Setting default nested values in context
Greetings,
I know that if having a field named "info", to set the default value of that field i will have to add context like this
{'default_info':'info_value'}But now, i want to set the default parent category of a product on a particular view
such that when a user tries to create a product, there is a default parent category selected.
Just thinking, does this which does not work make sense?
{'default_product_tmpl_id.categ_id.parent_id.name':'product_parent_name'}
Sorry for poor code, still a bit new to odoo.
Thanks your answer
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.
RegisterOdoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.
Test it nowQuestion tools
Stats
Asked: 2/3/16, 5:04 AM |
Seen: 896 times |
Last updated: 2/3/16, 6:01 AM |