Skip to Content
Menu
This question has been flagged

Hello there,


I have two questions regarding wizard manipulation through Odoo Studio automated actions.


I've been trying to open the create invoice wizard (where you apply down payments, etc.), using an automated action. I found the following code for calling window actions with studio:

action = { "type": "ir.actions.act_window", "id": 1112, }

I tried this code, it doesn't give me errors, but it doesn't open the create invoice wizard.

What am I missing?


I also searched in the forum, about sending data from the model where the call is made (in this example sale.order) into the wizard. This I would use to autofill the down payment percentage. I learnt that it is possible using context. But I don't really know how context works. How does the context connect sale.order to create invoice wizard?

Could you show me sample code on how to bring the context over within Studio automated action?


Thanks,

Avatar
Discard
Related Posts Replies Views Activity
1
Mar 23
3009
2
Dec 24
1131
1
May 22
2493
0
Oct 23
7031
0
Mar 23
1103