Browse Source

[ADD] b_base : demo datas for users

pull/147/head
Elouan Le Bars 5 years ago
parent
commit
0c052664ae
  1. 5
      beesdoo_base/__manifest__.py
  2. 37
      beesdoo_base/demo/users.xml

5
beesdoo_base/__manifest__.py

@ -24,7 +24,6 @@
'depends': ['point_of_sale', 'purchase', 'portal', 'partner_firstname'],
'data': [
'demo/cooperators.xml',
'security/groups.xml',
'security/ir.model.access.csv',
'views/partner.xml',
@ -34,4 +33,8 @@
'report/beescard.xml',
],
'installable': True,
'demo': [
'demo/cooperators.xml',
'demo/users.xml',
]
}

37
beesdoo_base/demo/users.xml

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2019 Coop IT Easy
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<!-- Generic and permanent account -->
<record id="beesdoo_shift_partner_1_demo" model="res.partner">
<field name="firstname">Generic Account</field>
<field name="lastname">Demo</field>
<field name="email">generic@demo.net</field>
</record>
<record id="beesdoo_shift_partner_2_demo" model="res.partner">
<field name="firstname">Permanent Member</field>
<field name="lastname">Demo</field>
<field name="is_company" eval="False"/>
<field name="email">permanent@demo.net</field>
<field name="city">Ixelles</field>
<field name="zip">1050</field>
<field name="country_id" ref="base.be"/>
</record>
<record id="beesdoo_shift_user_1_demo" model="res.users">
<field name="partner_id" ref="beesdoo_shift_partner_1_demo"/>
<field name="login">generic</field>
<field name="password">demo</field>
</record>
<record id="beesdoo_shift_user_2_demo" model="res.users">
<field name="partner_id" ref="beesdoo_shift_partner_2_demo"/>
<field name="login">permanent</field>
<field name="password">demo</field>
</record>
</odoo>
Loading…
Cancel
Save