From 9a362dda4fc8b4b63b49ec9f44f7dce779e64276 Mon Sep 17 00:00:00 2001 From: "Andrea Grazioso (agr-odoo)" Date: Wed, 14 Aug 2019 13:11:53 +0000 Subject: [PATCH] [FIX] maintenance: Wrong alias set up on category creation From the Maintenance app go to "Settings">"Equipment Categories". Create a new category, insert a name and save. An alias get automatically created with the same name as the new category. The new alias point to "Maintenance Equipment" model, so when an email is matched with the alias a new equipment under the new category is created. This is indeed the default behavior but the help message is deceiving the user. Changing it. opw-2049830 closes odoo/odoo#35728 Signed-off-by: Nicolas Martinelli (nim) --- addons/maintenance/i18n/maintenance.pot | 2 +- addons/maintenance/models/maintenance.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/maintenance/i18n/maintenance.pot b/addons/maintenance/i18n/maintenance.pot index ad2763815f2..5ecb84f45cb 100644 --- a/addons/maintenance/i18n/maintenance.pot +++ b/addons/maintenance/i18n/maintenance.pot @@ -431,7 +431,7 @@ msgstr "" #. module: maintenance #: model:ir.model.fields,help:maintenance.field_maintenance_equipment_category__alias_id -msgid "Email alias for this equipment category. New emails will automatically create new maintenance request for this equipment category." +msgid "Email alias for this equipment category. New emails will automatically create a new equipment under this category." msgstr "" #. module: maintenance diff --git a/addons/maintenance/models/maintenance.py b/addons/maintenance/models/maintenance.py index 7071f33d99b..6b8fd5eb5f4 100644 --- a/addons/maintenance/models/maintenance.py +++ b/addons/maintenance/models/maintenance.py @@ -43,7 +43,7 @@ class MaintenanceEquipmentCategory(models.Model): alias_id = fields.Many2one( 'mail.alias', 'Alias', ondelete='restrict', required=True, help="Email alias for this equipment category. New emails will automatically " - "create new maintenance request for this equipment category.") + "create a new equipment under this category.") fold = fields.Boolean(string='Folded in Maintenance Pipe', compute='_compute_fold', store=True) @api.multi