Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
4757 Переглядів

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.

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
вер. 23
1278
0
груд. 22
2154
1
квіт. 20
2973
1
лип. 24
879
1
січ. 24
3232