except Exception:
_logger.warning('Invalid selection list definition for fields.selection', exc_info=True)
raise except_orm(_('Error'),
- _("The Selection Options expression is not a valid Pythonic expression." \
+ _("The Selection Options expression is not a valid Pythonic expression."
"Please provide an expression in the [('key','Label'), ...] format."))
check = True
def _get_ids(self, cr, uid, name, tt, lang, ids):
translations = dict.fromkeys(ids, False)
if ids:
- cr.execute('select res_id,value ' \
- 'from ir_translation ' \
- 'where lang=%s ' \
- 'and type=%s ' \
- 'and name=%s ' \
+ cr.execute('select res_id,value '
+ 'from ir_translation '
+ 'where lang=%s '
+ 'and type=%s '
+ 'and name=%s '
'and res_id IN %s',
(lang,tt,name,tuple(ids)))
for res_id, value in cr.fetchall():
self._get_ids.clear_cache(self, uid, name, tt, lang, res_id)
self._get_source.clear_cache(self, uid, name, tt, lang)
- cr.execute('delete from ir_translation ' \
- 'where lang=%s ' \
- 'and type=%s ' \
- 'and name=%s ' \
+ cr.execute('delete from ir_translation '
+ 'where lang=%s '
+ 'and type=%s '
+ 'and name=%s '
'and res_id IN %s',
(lang,tt,name,tuple(ids),))
for id in ids: