Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4656 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
wrz 23
1233
0
gru 22
2115
1
kwi 20
2920
1
lip 24
795
1
sty 24
3135