summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Grazioso (agr-odoo) <agr@odoo.com>2019-08-14 13:11:53 +0000
committerAndrea Grazioso (agr-odoo) <agr@odoo.com>2019-08-16 11:58:33 +0000
commit9a362dda4fc8b4b63b49ec9f44f7dce779e64276 (patch)
tree1d703376ea4495cb2ad7a35ea1d3669a6dad72fc
parentc28a4660693db9730684cc56cd04333e395fee16 (diff)
[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>
-rw-r--r--addons/maintenance/i18n/maintenance.pot2
-rw-r--r--addons/maintenance/models/maintenance.py2
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