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 need to define a field that is not mapped to the database. What I did was:
var1 = fields.Char()
var2 = fields.Char()
var3 = fields.Float(manual=True)
As expected, it was only the mapped field var1 and var2. But my problem is the use of the var3 in my view. I need it only for temporary use, to store a value to address the submission form.
<tree editable="bottom" create="false">I want the user to set the variable with a value, and submission treat this value and remove the variable var3 not to store in the database.
<field name="var1" readonly="1"/>
<field name="var2" readonly="1"/>
But the problem is that, ODOO try something like "select var1, var2, var3 from table", and var3 is not mapped in the database.
What I need is a tree, similar to the following:
Anyone has a solution for my problem, or a best approach to this?
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: 2/16/16, 11:14 AM|
|Seen: 857 times|
|Last updated: 2/17/16, 11:08 AM|