Skip to Content
Menu
This question has been flagged
1 Reply
3661 Views

Hi Everyone, Thanks for your Time

Need Help! In Odoo Online v14, I have created a custom field "X Analytic Account" on Delivery Order model using Odoo Studio. And on Sales Order model, we already have "Analytic Account"(standard) field. Now, what I want is that using Automated Actions in Odoo, whenever a new Delivery Order record is created, odoo should auto-populate  "X Analytic Account" field on Delivery Order using value of "Analytic Account" field which is on parent Sales Order record. Also I want to acheive this automation using  Automated Actions using "Execute Python Code". I have some knowledge on how this can be achieved by making some changes in source code etc. but with Automated Actions I couldn't seem to figure it out.

If possible how this can be done with Automated Actions or with some other option in Odoo Studio? If this is not possible can you please explain whatever limitations there are with Automated Actions.

Thanks a Lot.

Avatar
Discard
Best Answer

Hi,

After creating the studio field (X Analytic Account, Many2one field with analytic account model) a related field with sale order can be defined in order to fulfill the requirement. For that you can click on the ‘More’ button at the left bottom corner and will be redirected to the field properties. There under the ‘Advanced Properties’ section we can give the 'Related field' as : 'sale_id.analytic_account_id'.

It will auto-populate "X Analytic Account" field on Delivery Order using value of "Analytic Account" field which is on parent Sales Order record.

Regards

Avatar
Discard
Related Posts Replies Views Activity
1
Sep 23
432
0
Dec 22
1388
1
Apr 20
2164
1
Jul 24
211
1
Jan 24
1547