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

How to add an automated action that assigns the same analytic account for all the lines in a purchase order?

The analytic_distribution field is a JSON type in ODOO 16 enterprise. For example, to update the description of every line of the PO, I use the following code: 

for n in records.order_line:
n.update({"name":"hello"})

I have already created a many-to-one field called "analytic_account_field" in the purchase order to serve as a basis to update all of the analytic distribution lines. 


Thanks in advance

 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi Daniel, did you get an answer to your query?
I have the same issue. Thanks

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi Daniel, have you found the solution for this?

อวตาร
ละทิ้ง