Purpose of this commit is to continue to clean server actions, scheduled actions and automated actions. Server actions hold code execution and automated actions hold triggers and conditions. This commit make automated action inherits from ir_actions_server. Automated actions do not hold several server actions anymore. Instead each new automated action creates its own server action holding the code or actions to perform. Automated actions that held several server actions should now simply use a server action of type multi. This commit also features: * rename 'kind' field to trigger * remove 'act_user_id' as this should be done by the server action itself not the automated action. This can be achieved using a write or code server action; * remove 'act_followers' as this is replaced by a followers server action; * use a primary form view inherited from server action. This way automated actions use the same base form as server actions with triggers and conditions added; Thanks to @fpodoo for the original idea and preliminary work. Thanks to @jpr-odoo for first developments. Thanks to @jem-odoo and @rco-odoo for reviewing.
499 B
499 B
| 1 | id | name | model_id:id | group_id:id | perm_read | perm_write | perm_create | perm_unlink |
|---|---|---|---|---|---|---|---|---|
| 2 | access_base_automation | base.automation | model_base_automation | 1 | 0 | 0 | 0 | |
| 3 | access_base_automation_config | base.automation config | model_base_automation | base.group_system | 1 | 1 | 1 | 1 |
| 4 | access_base_automation_lead_test | access_base_automation_lead_test | model_base_automation_lead_test | base.group_system | 1 | 1 | 1 | 1 |
| 5 | access_base_automation_line_test | access_base_automation_line_test | model_base_automation_line_test | base.group_system | 1 | 1 | 1 | 1 |