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
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 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
Skapa ett konto idag för att ta del av exklusiva funktioner och engagera dig i vår fantastiska community!
Registrera dig| Relaterade inlägg | Svar | Vyer | Verksamhet | |
|---|---|---|---|---|
|
0
aug. 24
|
3430 | |||
|
0
apr. 24
|
4227 | |||
|
1
juli 24
|
3876 | |||
|
1
mars 22
|
7062 | |||
|
1
juni 21
|
4945 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
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.