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

I created a button on pos.order linked to a server.action to update a custom field. Works fine but I would like to close the form automatically after the update.

I've seen there is the possibility to call a windows action to close it (ir.actions.act_window_close?) but I don't know how to add to my button attributes. 

Here's my (simple) code on form view to call the server action:

<button class="oe_highlight" name="616" string="kot" type="action" states="paid,done,invoiced"/>

How can I modify it without edit the py and xml files? I don't want to affect others databases.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
Non-dict expression Đã xử lý
2
thg 7 22
3287
2
thg 8 15
5247
0
thg 3 24
1494
2
thg 9 24
4841
3
thg 1 24
14885