Skip to content

Commit

Permalink
Fix Load Translation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben1700 authored Sep 9, 2024
1 parent adfeff2 commit 332d070
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 not in (False, 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 332d070

Please sign in to comment.