Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
5874 Представления

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 !


Аватар
Отменить
Лучший ответ

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()


Аватар
Отменить
Автор

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

Related Posts Ответы Просмотры Активность
0
сент. 23
1844
0
сент. 23
1538
2
июн. 25
10949
6
окт. 23
21796
3
мар. 24
9252