Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
2506 Zobrazení

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 !!

Avatar
Zrušit
Autor Nejlepší odpověď

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 !

Avatar
Zrušit
Autor

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 !

Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
srp 22
4153
1
dub 22
3262
1
bře 22
3939
1
úno 22
2452
0
úno 22
2196