[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) <nim@odoo.com>
This commit is contained in:
Andrea Grazioso (agr-odoo)
2019-08-16 11:58:33 +00:00
parent c28a466069
commit 9a362dda4f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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