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

I have created a binary file field (x_studio_storyboard) with Odoo Studio that needs to be copied over to the Request for Quotation when the Sales Order is confirmed. Is this possible?


Thanks for the help!

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

Yes, this is possible by creating a Computed Field on the Request for quotation / Purchase Order.

My example is using the Customer Reference on a sales order, and assumes there's a one2one relationship (each PO is for one SO).  It should be easy to adapt for your custom field.


for record in self:
  if record.origin:
    order = record.env['sale.order'].search([('name','=',record.origin)])
    record['x_studio_client_order_ref'] = order.client_order_ref
Ảnh đại diện
Huỷ bỏ
Tác giả

This worked great, thanks! I just had to change the PO Field Type to File, to match the field that I was trying to copy over on my SO.

You're welcome, and thanks for responding! So many people don't bother to give any response.

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

Hi,

Yes, this is possible Request for Quotation and sales order for the same model (sale order) then possible.


Hope it helps

Ảnh đại diện
Huỷ bỏ

That's not correct! Request for Quotation is a draft Purchase Order.

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 10 24
1858
2
thg 10 24
3206
1
thg 7 24
2450
0
thg 6 24
1301
2
thg 2 24
2852