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

Thank you in advance.

We want to make the Purchase Order name automatically change when the purchase is Updated.


The new Purchase Order name should be changed to:

(1) the current Purchase Number (purchase.order) + (2) Vendor Name (partner_id)

E,g. P00082 -----> becomes P00082 Amex


What python expression should we put into Data to Write section for this automation to work?

Thanks

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

Thanks for your help Niyas, I got it!!!!!!


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

Hi,

You can add following python code:

record['name'] += '  ' + str(record.partner_id.name)

Thanks

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

Thank you!!!! You are a life saver!