Skip to content

Commit

Permalink
[FIX] website_gengo: adapt source->src in 13.0
Browse files Browse the repository at this point in the history
In 13.0 66ef641 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 odoo#49884

Signed-off-by: Nicolas Lempereur (nle) <[email protected]>
  • Loading branch information
nle-odoo committed Apr 22, 2020
1 parent 68b0816 commit 527b3bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/website_gengo/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def set_translations(self, data, lang):
vals.update({
'name': 'website',
'lang': lang,
'source': initial_content,
'src': initial_content,
})
IrTranslation.create(vals)
return True

0 comments on commit 527b3bf

Please sign in to comment.