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

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

อวตาร
ละทิ้ง
ผู้เขียน

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


คำตอบที่ดีที่สุด

Hi,

You can add following python code:

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

Thanks

อวตาร
ละทิ้ง
ผู้เขียน

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