--HG-- branch : odoo8
@ -9,4 +9,11 @@ class py3o_server(osv.Model):
u"URL",
size=256,
),
'is_active': fields.boolean(
u"Active",
)
}
_defaults = {
'is_active': True,
@ -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:
@ -9,6 +9,7 @@
<sheet>
<group>
<field name="url" />
<field name="is_active" />
</group>
</sheet>
</form>
@ -21,6 +22,7 @@
<field name="arch" type="xml">
<tree string="Py3o Server Configuration" version="7.0">
</tree>
</field>
</record>