[IMP] removed constraints if term created by website(Speed improved)

bzr revid: pga@tinyerp.com-20140321133829-p2eon73py0ny3aja
This commit is contained in:
Parth Gajjar (Open ERP) 2014-03-21 19:08:29 +05:30
parent bc0a7cbc0c
commit 2cf5e1a490
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ class ir_translation(osv.Model):
def _check_lang_support(self, cr, uid, ids, context=None):
for term in self.browse(cr, uid, ids, context=context):
if term.gengo_translation:
if term.gengo_translation and term.name != 'website':
supported_langs = self._get_all_supported_languages(cr, uid, context=context)
if supported_langs:
tier = "nonprofit" if term.gengo_translation == 'machine' else term.gengo_translation

View File

@ -127,7 +127,7 @@ class base_gengo_translations(osv.osv_memory):
#check the cron jobs and eventually restart/recreate them
if wizard.restart_send_job:
self.do_check_schedular(cr, uid, 'gengo_sync_send_request_scheduler', _('Gengo Sync Translation (Request)'), '_sync_request', context=context)
self.do_check_schedular(cr, uid, 'gengo_sync_receive_request_scheduler', _('Gengo Sync Translation (Response)'), '_sync_response', context=context)
self.do_check_schedular(cr, uid, 'gengo_sync_receive_request_scheduler', _('Gengo Sync Translation (Response)'), '_sync_response', context=context)
return {'type': 'ir.actions.act_window_close'}
def _sync_response(self, cr, uid, limit=GENGO_DEFAULT_LIMIT, context=None):