Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
4526 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
set. 23
1151
0
dez. 22
2038
1
abr. 20
2813
1
jul. 24
738
1
jan. 24
2938