Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ

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,

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 23
4134
2
thg 1 25
3515
1
thg 5 22
3440
0
thg 10 23
8362
0
thg 3 23
1833