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

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

 

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

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

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

Hi Daniel, have you found the solution for this?

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