Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
2504 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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 !

Ảnh đại diện
Huỷ bỏ
Tác giả

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 !

Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 8 22
4150
1
thg 4 22
3261
1
thg 3 22
3893
1
thg 2 22
2451
0
thg 2 22
2192