This question has been flagged
2 Replies
757 Views

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

 

Avatar
Discard
Best Answer

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

Avatar
Discard
Best Answer

Hi Daniel, have you found the solution for this?

Avatar
Discard