Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
5468 Visualizzazioni

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.

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
lug 22
3023
2
ago 15
5099
0
mar 24
1223
2
set 24
4627
3
gen 24
14606