Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
3 Antworten
2900 Ansichten
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
Verwerfen

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.


Beste Antwort

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
Verwerfen
Beste Antwort

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Aug. 24
1349
0
Apr. 24
2088
1
Juli 24
2238
1
März 22
4986
1
Juni 21
3349