[FIX] website_gengo: adapt source->src in 13.0

In 13.0 66ef641f33 the source field was removed.

This would cause an error when gengo is updating a existing
ir.translation record (eg. if we do two times gengo auto-translations).

opw-2234713
closes #49884

closes odoo/odoo#50001

X-original-commit: 527b3bfb2b17a821d6051a9010ec717a62c7c748
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
This commit is contained in:
Nicolas Lempereur
2020-04-22 14:43:46 +00:00
parent 9340f7460e
commit 4f8ee9b4f7
+1 -1
View File
@@ -57,7 +57,7 @@ class WebsiteGengo(http.Controller):
vals.update({
'name': 'website',
'lang': lang,
'source': initial_content,
'src': initial_content,
})
IrTranslation.create(vals)
return True