diff options
| author | Priyanka Kakadiya <pka@odoo.com> | 2018-04-05 17:03:48 +0530 |
|---|---|---|
| committer | Pierre Masereel <pim@odoo.com> | 2018-08-30 15:32:42 +0200 |
| commit | 8b355457c4b1c60defed944306fa8515f15b3ab8 (patch) | |
| tree | 18325e6d6749d334ca46ca1851ac25c6cc8bb6bb /addons/maintenance/security | |
| parent | 73f1d590965a483a4f8674807f5181f68956fa03 (diff) | |
[IMP] maintenance,hr_maintenance: notify user assigned to a request
When a user is assigned as responsible of request, we want him to get a
mail saying that he's a assigned to this request, a standard behaviour
exists in Odoo to perform such a thing, which consist of having a field
named 'user_id' which is tracked, so to avoid overriding the method, we
renamed the field 'technician_user_id' in 'user_id'.
Wre also set teh mail subtype 'request create' with default false, to
have the same behaviour as the on in project, meaning that it is true
only if you have the parent subtype set to true.
TASK-ID: 58645
Diffstat (limited to 'addons/maintenance/security')
| -rw-r--r-- | addons/maintenance/security/maintenance.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/maintenance/security/maintenance.xml b/addons/maintenance/security/maintenance.xml index 1214b91bd67..9e8fadfe24b 100644 --- a/addons/maintenance/security/maintenance.xml +++ b/addons/maintenance/security/maintenance.xml @@ -12,7 +12,7 @@ <record id="equipment_request_rule_user" model="ir.rule"> <field name="name">Users are allowed to access their own maintenance requests</field> <field name="model_id" ref="model_maintenance_request"/> - <field name="domain_force">['|', ('message_partner_ids', 'in', [user.partner_id.id]), ('technician_user_id.id', '=', user.id)]</field> + <field name="domain_force">['|', ('message_partner_ids', 'in', [user.partner_id.id]), ('user_id.id', '=', user.id)]</field> <field name="groups" eval="[(4, ref('base.group_user'))]"/> </record> |
