Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3 Ответы
2859 Представления
As I can intercept all the create of the system, 
that is to say a module that allows me to do something whenever a creat is executed


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

You could do a module that does not have to play the core of odoo for that, that is, if there is any way to inherit model to affect all the system's create.


Лучший ответ

You can also define an automated action for this. Activate developer mode and go to Settings > Technical > Automated Actions (under Automation). You can define an automated action with a Trigger Condition of On Creation for any model in the system. One of the actions that can be performed (Action To Do) is Execute Python Code. This feature comes very handy for simple requirements.

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

you can intercept all the create at def _create of models.py
https://github.com/odoo/odoo/blob/12.0/odoo/models.py#L3618

Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
авг. 24
1307
0
апр. 24
2061
1
июл. 24
2195
1
мар. 22
4958
1
июн. 21
3306