Odoo Help

2

0
1 Answer
2
Shelton India
5/14/13, 11:26 AM

Use related fields, for eg:

'partner_id': fields.related('task_id','partner_id',type='many2one',relation='res.partner',string='Partner')
6 Comments
Bonnet Denis France
5/14/13, 11:44 AM

there is no solution without writing in database ? the information is in database, can't I read it directly ?

nazarii Ukraine
5/14/13, 12:12 PM

Fields related are not stored in DB by default unless parameter store=True is not defined.

Bonnet Denis France
5/14/13, 12:15 PM

thanks a lot

Bonnet Denis France
5/14/13, 12:34 PM

another question: how can I set the partner_id field with the project.partner_id field by default ?

nazarii Ukraine
5/14/13, 12:39 PM

You need to use default_get method and update it's result with with value that you need. More reference on http://doc.openerp.com/v6.0/developer/2_5_Objects_Fields_Methods/methods.html

Bonnet Denis France
5/14/13, 12:44 PM

thanks but I don't understand how to use this method. thanks again

Ask a Question
Writer
Tags
Keep Informed
0 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