[IMP] base_gengo: removal of restart_fetch_job field in wizard (not useful)

bzr revid: qdp-launchpad@openerp.com-20120831091851-wq4wxw3h5mbc6wjw
This commit is contained in:
Quentin (OpenERP) 2012-08-31 11:18:51 +02:00
parent 48b6fc09b3
commit 0491bffbe3
2 changed files with 2 additions and 5 deletions

View File

@ -48,7 +48,6 @@ class base_gengo_translations(osv.osv_memory):
_name = 'base.gengo.translations'
_columns = {
'restart_send_job': fields.boolean("Restart Sending Job"),
'restart_fetch_job': fields.boolean("Restart Fetching Job"),
'lang_id': fields.many2one('res.lang', 'Language', help="Leave empty if you don't want to restrict the request to a single language"),
}
@ -118,8 +117,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)
if wizard.restart_fetch_job:
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):

View File

@ -8,11 +8,10 @@
<form string="Gengo Request Form" version="7.0">
<group col="4">
<group>
<field name="lang_id"/>
<field name="restart_send_job"/>
<field name="restart_fetch_job"/>
</group>
<group>
<field name="lang_id"/>
<label colspan="2" string="Leave empty for requesting all the terms to Gengo that needs it, regardless of their language"/>
</group>
</group>