diff --git a/trytond/protocols/dispatcher.py b/trytond/protocols/dispatcher.py index f7e6b86e58..c61bb47383 100644 --- a/trytond/protocols/dispatcher.py +++ b/trytond/protocols/dispatcher.py @@ -185,8 +185,8 @@ def create(database_name, password, lang, admin_password): #XXX replace with model write if lang != 'en_US': cursor.execute('UPDATE ir_lang ' \ - 'SET translatable = True ' \ - 'WHERE code = %s', (lang,)) + 'SET translatable = %s ' \ + 'WHERE code = %s', (True, lang)) cursor.execute('UPDATE res_user ' \ 'SET language = ' \ '(SELECT id FROM ir_lang WHERE code = %s LIMIT 1) '\