[FIX] base_gengo: syntax error fixed

bzr revid: qdp-launchpad@openerp.com-20120829095137-hy91xbg1gicwzid2
This commit is contained in:
Quentin (OpenERP) 2012-08-29 11:51:37 +02:00
parent db08eb4d0a
commit 55cc723fc1
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ class base_update_translation(osv.osv_memory):
translation_pool = self.pool.get('ir.translation')
jobs = {}
user = self.pool.get('res.users').browse(cr, uid, uid, context=context)
auto_approve = 1 if user.company_id.gengo_auto_approve or 0
auto_approve = 1 if user.company_id.gengo_auto_approve else 0
for term in translation_pool.browse(cr, uid, term_ids, context=context):
if re.search(r"\w", term.src or ""):
jobs[term.id] = {'type': 'text',