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

Hello all, 

I'm working on Odoo Online. 

I have setted up a multi company environnement where Company A purchase from Company  B. When company A validate the pruchase Order, a Sale Order is automatically created in Company B. 

I have been able, using automated action to populate the SO custom fields from the PO fields. 

Unfortunately, I'm not able to do the same with the custom fields of the SO LINES .

Let's say the PO ( company A ) as two lines, with two products. I have a custom fields for the "certification" of the product. I would like to have this info automatically sent to the SO, but my python skills are not good enough to do it by myself. 


Could you give me so advice on how to do that ? 

Thanks ! 

T.



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

Hi Thomas,


In order to fulfill your requirement, you need to find the method which create a sale order when a purchase order is manually created. You can then inherit this method and pass the custom fields to sales. 'inter_company_create_sale_order' is the corresponding method.

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

Hi Mihran, 


thanks for you answear. I have no idea how to do that, but I will look into it ! 

Can you just confirm that this is something doable on the Odoo saas online version ? And where does it have to be done ?Maybe in the automated actions, with Python code ? 


Thansk a lot. 

Thomas

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 22
4417
0
thg 3 24
1764
1
thg 12 21
3980
1
thg 4 21
2260
1
thg 3 24
3201