Odoo Ajuda

0

0
1 Resposta
1
Avatar

Niyas Raphy Índia

--Niyas Raphy--
25449
| 7 7 11
Wayanad, Kerala, Índia
--Niyas Raphy--

Odoo Techno Functionalist

Feel free to connect :  niyasraphyk@gmail.com

Twitter:https://twitter.com/niyasraphy
LinkedIn: https://www.linkedin.com/in/niyasraphy/
FB:https://www.facebook.com/niyasraphy123
Whatsapp : +917736136763
Happy to help :)

Niyas Raphy Índia
18/07/19 11:34

Hi,

For this you can use the related fields.

purchase_order = fields.Many2one('purchase.order, string="PO")
partner_id = fields.Many2one('res.partner', string="Vendor", related='purchase_order.partner_id')


Thanks

3 Comentários
rehmanabdullah355@gmail.com Paquistão
18/07/19 11:45

hey thanks for replying. it is giving error KeyError: 'purchase_field'. can you tell me what it is?

Niyas Raphy Índia
18/07/19 12:10

It's purchase_order.partner_id in the related, see updated Answer

rehmanabdullah355@gmail.com Paquistão
18/07/19 14:43

Man you are awesome! Thank You soo much

Faça uma Pergunta
Keep Informed
1 seguidor (es)
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