Odoo Help

0

0
1 Answer
1
Avatar

Dipak Shah

--Dipak Shah--

5387
| 6 3 8
New Delhi, 印度
--Dipak Shah--


Dipak Shah
2019/4/25 上午8:19

Hello LaLibreRie,

As per your example ,

>if you have value of parter then use this code as value of your field (refers_to)

value = 'res.partner,' + str(partner.id)

or

value = '%s,%s' % ('res.partner', partner.id)


> or if you have value of user then use this code for field (refers_to)

value = 'res.user,' + str(user.id)

or

value = '%s,%s' % ('res.user', user.id)

Thanks,

Dipak


2 Comments
LaLibreRie
2019/4/26 上午3:05

Great, works like a charm, thank you very much

Dipak Shah
2019/4/26 上午3:10

My pleasure !

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