[FIX] avoid crashing without demo data

bzr revid: fp@tinyerp.com-20130213110905-verdxm5zbzesxxox
This commit is contained in:
Fabien Pinckaers
2013-02-13 12:09:05 +01:00
parent 53a5aa5886
commit 84c0f117c4
3 changed files with 14 additions and 2 deletions
+3
View File
@@ -19,6 +19,9 @@ chat operators.
"security/ir.model.access.csv",
"live_support_view.xml",
],
'demo': [
"security/live_support_security_demo.xml",
],
'depends' : ["web_im", "mail", "portal_anonymous"],
'installable': True,
'auto_install': False,
@@ -11,7 +11,6 @@
<field name="name">User</field>
<field name="category_id" ref="module_category_live_support"/>
<field name="comment">The user will be able to join support channels.</field>
<field name="users" eval="[(4, ref('base.user_demo'))]"/>
</record>
<record id="group_live_support_manager" model="res.groups">
@@ -23,4 +22,4 @@
</record>
</data>
</openerp>
</openerp>
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<openerp>
<data>
<record id="group_live_support" model="res.groups">
<field name="users" eval="[(4, ref('base.user_demo'))]"/>
</record>
</data>
</openerp>