Skip to content

Commit

Permalink
Merge pull request #53 from gisce/Ruben1700-patch-1
Browse files Browse the repository at this point in the history
Fix Load Translation
  • Loading branch information
eberloso authored Sep 23, 2024
2 parents adfeff2 + 189c424 commit 3da5c7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oopgrade/oopgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ def module_is_installed(cursor, module_name):


def load_translation(cursor, lang, name, type, res_id, src, value):
if res_id:
if res_id is not False and res_id is not None:
insert_sql = """
INSERT INTO ir_translation(lang, name, type, res_id, src, value)
VALUES (%(lang)s, %(name)s, %(type)s, %(res_id)s, %(src)s, %(value)s)
Expand Down

0 comments on commit 3da5c7a

Please sign in to comment.