Odoo Help

3

2
1 Answer
2
Avatar

Andreas Brueckl Austria

--Andreas Brueckl--

5546
| 8 8 9
Vienna, Austria
--Andreas Brueckl--
OpenERP Consulting and Development
Andreas Brueckl Austria
3/10/13, 7:54 AM

You can use fields of type related to update fields which are not part of the actual model.

Here is an example from model stock.move:

'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 stock.move model.

Update:

You can also use a function field and define a method for argument fnct_inv. (See the Developer documentation)

1 Comment
Yakito Brazil
3/10/13, 10:23 AM

Perfect I think this will work. I will test and then come back to mark the answer right. Thanks a lot!

Ask a Question
Writer
Keep Informed
1 follower(s)
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