I add a custom field in sale order line and i wanna keep it in purchase order line when i confirm the SO
I tried to modify the function _run_buy but it doesn't work .
Please help !!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I add a custom field in sale order line and i wanna keep it in purchase order line when i confirm the SO
I tried to modify the function _run_buy but it doesn't work .
Please help !!
Thank you for your answer but i've already check these methods but i can't find where to add my new field. it will be really helpful if you give me examples.
Thank you in advance !
I tried to modify in the run_but method but i got this :
AttributeError: 'Procurement' object has no attribute 'other_parter_id'
Can anyone help please !
Hi,
From the _run_buy method, another method _prepare_purchase_order_line_from_procurement is called, from there you can see the function _prepare_purchase_order_line to update from there a function called values into purchase. Do check the method, it may help you.
Hope it helps
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
RegistrarsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
2
ago 22
|
4018 | ||
|
1
abr 22
|
3109 | ||
|
1
mar 22
|
2492 | ||
|
1
feb 22
|
2346 | ||
|
0
feb 22
|
1987 |