Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
3 Răspunsuri
2842 Vizualizări
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


Imagine profil
Abandonează

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.


Cel mai bun răspuns

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.

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
aug. 24
1274
0
apr. 24
1991
1
iul. 24
2123
1
mar. 22
4921
1
iun. 21
3279