This commit improves expense flow management through a better integration of activities and addition of automated activities. Several things are done in this commit : * expense sheet (report) model do not inherit from mail.activity.mixin. This commit adds the inherit so that expense users and managers can now schedule and manage activities on expense reports. This will help them in their daily job; * automatic activities generation is added for expense reports. Activities are generated for approval. They are also automatically set as done when validating or unlinked when refusing or resetting to avoid bloating users with unnecessary activities; * a menu to configure activity types is added. Indeed HR managers should be able to see and configure activity types related to their job; * filters are added to be able to use the systray and to filter the kanban view based on activities Having automated activities allow to replace some messages and tracking that were implemented to warn people of expense reports to approve. This commit therefore * simplifies the tracking as tracking to confirm reports is not necessary anymore; * removes to approve subtype on report model as well as its parent subtype on the department. This allows to simplify chatter in hr_expense app;
16 lines
784 B
XML
16 lines
784 B
XML
<?xml version="1.0"?>
|
|
<odoo>
|
|
<!-- Activity types config -->
|
|
<record id="mail_activity_type_action_config_hr_expense" 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', '=', 'hr.expense.sheet')]</field>
|
|
<field name="context">{'default_res_model': 'hr.expense.sheet'}</field>
|
|
</record>
|
|
<menuitem id="hr_expense_menu_config_activity_type"
|
|
action="mail_activity_type_action_config_hr_expense"
|
|
parent="menu_hr_expense_configuration"
|
|
groups="base.group_no_one"/>
|
|
</odoo> |