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

Hello,

I want to execute a Server Action when the button to confirm sale is clicked.

Is it possible to do so ? Through Graphical Interface ?

In Odoo 9

Thanks you !


Avatar
Cancelar
Melhor resposta

Yes, you can do it. You need to call the run function of "ir.actions.server" object from the confirm method.

Ex:

self.env.ref('module_name.xml_id_of_server_action').run()


Avatar
Cancelar
Autor

Ok thank you for your answer ! I have one more question, where can i access the confirm method ?

Publicações relacionadas Respostas Visualizações Atividade
0
set. 23
1515
0
set. 23
1275
2
fev. 23
10557
6
out. 23
21280
3
mar. 24
8881