跳至内容
菜单
此问题已终结
2 回复
2420 查看

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

形象
丢弃
相关帖文 回复 查看 活动
2
8月 22
4031
1
4月 22
3137
1
3月 22
2545
1
2月 22
2367
0
2月 22
1989