-
Notifications
You must be signed in to change notification settings - Fork 23k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] maintenance: improve activity management on maintenance request…
… model This commit improves maintenance requests management through a better integration of activities and addition of automated activities. Several things are done in this commit : * automatic activities generation is added for maintenance requests. Activities are generated to remind assigned users about maintenance to perform. They are also automatically removed or updated if the scheduled date is changed or if the request is done to avoid bloating users with unnecessary activities; * a menu to configure activity types is added. Indeed equipment managers should be able to see and configure activity types related to their job;
- Loading branch information
1 parent
77c7b68
commit d0e2cae
Showing
5 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0"?> | ||
<odoo> | ||
<!-- Activity types config --> | ||
<record id="mail_activity_type_action_config_maintenance" model="ir.actions.act_window"> | ||
<field name="name">Activity Types</field> | ||
<field name="res_model">mail.activity.type</field> | ||
<field name="view_type">form</field> | ||
<field name="view_mode">tree,form</field> | ||
<field name="domain">['|', ('res_model_id', '=', False), ('res_model_id.model', '=', 'maintenance.request')]</field> | ||
<field name="context">{'default_res_model': 'maintenance.request'}</field> | ||
</record> | ||
<menuitem id="maintenance_menu_config_activity_type" | ||
action="mail_activity_type_action_config_maintenance" | ||
parent="menu_maintenance_configuration" | ||
sequence="20" | ||
groups="base.group_no_one"/> | ||
</odoo> |