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 have created a dynamic field through field_view_get function . The problem is that when I try to store data to this field . It does not get stored. The field is not showing anything . I am confused because I think I will have to make an entry for this field in my database.
1) How can this be done ?
2) Second thing is how can we set a button to fields_view_get function ? If I want to create dynamic fields through a button click then will it be possible through fields_view_get or not?
fields_view_get() is used to modified the displaying of a view. If you add a dynamic field on this method, you must also add this field in the fields_get() method.
But, if you need to save the value of this dynamic field, you should create a new fields on your object to save its value on the DB. Else, you need to develop a method to save the value in your proper way (in a file, in memory or anything else).
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: 4/2/14, 5:12 AM|
|Seen: 1580 times|
|Last updated: 2/9/16, 8:36 AM|