From 76dd671703f981dccdcf279a786300f5f263bb92 Mon Sep 17 00:00:00 2001
From: Luis Torres <luis_t@vauxoo.com>
Date: Thu, 31 Oct 2019 17:50:42 +0000
Subject: [PATCH] [FIX] mrp: Error on translations was fixed

After of this commit 12a2bd6792c24b36307d891f0c5138b0bb7aae64, returns a
traceback when overwrite the translations (Spanish by example)

The error is
ERROR: ON CONFLICT DO UPDATE command cannot affect row a
second time
HINT:  Ensure that no rows proposed for insertion within the same
command have duplicate constrained values.

And is returned because the field field_mrp_routing__location_id now
have 2 translations

closes odoo/odoo#39680

Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
---
 addons/mrp/i18n/mrp.pot | 1 -
 1 file changed, 1 deletion(-)

diff --git a/addons/mrp/i18n/mrp.pot b/addons/mrp/i18n/mrp.pot
index bfb3722457e5..5d0aa2665432 100644
--- a/addons/mrp/i18n/mrp.pot
+++ b/addons/mrp/i18n/mrp.pot
@@ -2567,7 +2567,6 @@ msgstr ""
 
 #. module: mrp
 #: model:ir.model.fields,field_description:mrp.field_mrp_production__production_location_id
-#: model:ir.model.fields,field_description:mrp.field_mrp_routing__location_id
 #: model_terms:ir.ui.view,arch_db:mrp.mrp_routing_search_view
 msgid "Production Location"
 msgstr ""
-- 
GitLab