Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odpovědi
2817 Zobrazení
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


Avatar
Zrušit

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.


Nejlepší odpověď

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.

Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
srp 24
1249
0
dub 24
1966
1
čvc 24
2082
1
bře 22
4866
1
čvn 21
3240