Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
2488 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ส.ค. 22
4144
1
เม.ย. 22
3257
1
มี.ค. 22
3716
1
ก.พ. 22
2445
0
ก.พ. 22
2164