Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
4772 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
1
Sep 23
1280
0
Des 22
2158
1
Apr 20
2974
1
Jul 24
883
1
Jan 24
3245