diff --git a/models/py3o_server.py b/models/py3o_server.py
index 957e7b81..d815a845 100644
--- a/models/py3o_server.py
+++ b/models/py3o_server.py
@@ -9,4 +9,11 @@ class py3o_server(osv.Model):
u"URL",
size=256,
),
+ 'is_active': fields.boolean(
+ u"Active",
+ )
+ }
+
+ _defaults = {
+ 'is_active': True,
}
diff --git a/py3o_parser.py b/py3o_parser.py
index 3c21cc2f..b380ff7a 100644
--- a/py3o_parser.py
+++ b/py3o_parser.py
@@ -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:
diff --git a/views/py3o_server.xml b/views/py3o_server.xml
index ba3456a9..45fa384b 100644
--- a/views/py3o_server.xml
+++ b/views/py3o_server.xml
@@ -9,6 +9,7 @@
+
@@ -21,6 +22,7 @@
+