Can set Py3o servers as inactive

--HG--
branch : odoo8
This commit is contained in:
Jérémie Gavrel
2016-03-09 17:53:01 +01:00
parent 1826aa2c45
commit 7e9a76558c
3 changed files with 10 additions and 1 deletions

View File

@@ -158,7 +158,7 @@ class Py3oParser(report_sxw):
fusion_server_obj = pool.get('py3o.server')
fusion_server_ids = fusion_server_obj.search(
cr, uid, [], context=context, limit=1
cr, uid, [('is_active', '=', True)], context=context, limit=1
)
if not fusion_server_ids:
if filetype.fusion_ext == report_xml.py3o_template_id.filetype: