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
Opret en konto i dag for at få glæde af eksklusive funktioner, og bliv en del af vores skønne fællesskab!
Tilmeld dig| Relaterede indlæg | Besvarelser | Visninger | Aktivitet | |
|---|---|---|---|---|
|
0
aug. 24
|
3456 | |||
|
0
apr. 24
|
4234 | |||
|
1
jul. 24
|
3879 | |||
|
1
mar. 22
|
7070 | |||
|
1
jun. 21
|
4953 |
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.