diff --git a/addons/base_gengo/ir_translation.py b/addons/base_gengo/ir_translation.py index 17ce36696eb..90cd04b99ef 100644 --- a/addons/base_gengo/ir_translation.py +++ b/addons/base_gengo/ir_translation.py @@ -71,18 +71,3 @@ class ir_translation(osv.Model): def _get_gengo_corresponding_language(cr, lang): return lang in LANG_CODE_MAPPING and LANG_CODE_MAPPING[lang][0] or lang - - def _check_lang_support(self, cr, uid, ids, context=None): - for term in self.browse(cr, uid, ids, context=context): - 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 - language = self._get_gengo_corresponding_language(term.lang) - if tier not in supported_langs.get(language,[]): - return False - return True - - _constraints = [ - (_check_lang_support, 'The Gengo translation service selected is not supported for this language.', ['gengo_translation']) - ] diff --git a/addons/base_gengo/wizard/base_gengo_translations.py b/addons/base_gengo/wizard/base_gengo_translations.py index 1a6cc0404de..57c20d47a20 100644 --- a/addons/base_gengo/wizard/base_gengo_translations.py +++ b/addons/base_gengo/wizard/base_gengo_translations.py @@ -52,7 +52,6 @@ class base_gengo_translations(osv.osv_memory): _name = 'base.gengo.translations' _columns = { - 'restart_send_job': fields.boolean("Restart Sending Job"), 'sync_type': fields.selection([('send', 'Send New Terms'), ('receive', 'Receive Translation'), ('both', 'Both')], "Sync Type"), @@ -125,9 +124,6 @@ class base_gengo_translations(osv.osv_memory): if wizard.sync_type in ['receive','both']: self._sync_response( cr, uid, limit=GENGO_DEFAULT_LIMIT, context=ctx) #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) return {'type': 'ir.actions.act_window_close'} def _sync_response(self, cr, uid, limit=GENGO_DEFAULT_LIMIT, context=None): diff --git a/addons/base_gengo/wizard/base_gengo_translations_view.xml b/addons/base_gengo/wizard/base_gengo_translations_view.xml index 5a322ad3a60..f4fed7e5ddd 100644 --- a/addons/base_gengo/wizard/base_gengo_translations_view.xml +++ b/addons/base_gengo/wizard/base_gengo_translations_view.xml @@ -10,12 +10,7 @@ - - - - -