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 am learning how to develop my own modules, and for it I need to create a new
view with different
I wish to be able to insert some of the
fields in the main table created by the class, and the
fields which are inside the
page of the view into another table.
Is this possible? If someone can point me in the right direction I will appreciate it!
You can use fields of type
related to update fields which are not part of the actual model.
Here is an example from model
'origin': fields.related('picking_id','origin',type='char', size=64, relation="stock.picking", string="Source", store=True),
This code maps the
origin of the
stock.picking to the origin of the
stock.move. So you can change the
origin field of
stock.picking from within the
You can also use a
function field and define a method for argument
(See the Developer documentation)
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: 2/19/13, 1:49 PM|
|Seen: 1222 times|
|Last updated: 3/16/15, 8:10 AM|