[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