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
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký| Bài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
|---|---|---|---|---|
|
0
thg 8 24
|
3450 | |||
|
0
thg 4 24
|
4234 | |||
|
1
thg 7 24
|
3879 | |||
|
1
thg 3 22
|
7067 | |||
|
1
thg 6 21
|
4951 |
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.