Odoo Help

0

0
1 Answer
1
Silverstar
6/5/19 06:48

Hi,

you need to mention its Model name.

rel_company_selection = fields.Many2one('account.analytic.account', string="Company", related='rel_account_invoice.company_selection')

Regards,

Silvestar


5 Comments
Sameer Ahmad
6/5/19 07:00

It still gives me nothing, when i print the rel_company_selection it just gives me account.analytic.account()

Sameer Ahmad
6/5/19 07:04

Do you think it's happening because the record hasn't yet been written to database and we are trying to access it, hence the empty value?

Silverstar
6/5/19 08:52

do you have value for that model?

Sameer Ahmad
6/5/19 11:03

Value for model? I didn't get you

Silverstar
7/5/19 02:35

yes

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 eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now