Browse Source

[MOV] b_shift : demo datas for users in b_base

pull/125/head
Elouan Le Bars 5 years ago
parent
commit
668407cae6
  1. 31
      beesdoo_shift/demo/users.xml
  2. 4
      beesdoo_shift/tests/test_beesdoo_shift.py

31
beesdoo_shift/demo/users.xml

@ -4,39 +4,10 @@
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="name">Generic Account</field>
<field name="email">generic@demo.net</field>
</record>
<record id="beesdoo_shift_partner_2_demo" model="res.partner">
<field name="name">Permanent Member 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>
<!-- Security groups -->
<record id="beesdoo_shift.group_shift_attendance_sheet" model="res.groups">
<field name="users" eval="[(6,0,[ref('beesdoo_shift_user_1_demo')])]"/>
<field name="users" eval="[(6,0,[ref('beesdoo_base.beesdoo_shift_user_1_demo')])]"/>
</record>
</odoo>

4
beesdoo_shift/tests/test_beesdoo_shift.py

@ -28,10 +28,10 @@ class TestBeesdooShift(TransactionCase):
self.current_time = datetime.now()
self.user_admin = self.env.ref("base.user_root")
self.user_generic = self.env.ref(
"beesdoo_shift.beesdoo_shift_user_1_demo"
"beesdoo_base.beesdoo_shift_user_1_demo"
)
self.user_permanent = self.env.ref(
"beesdoo_shift.beesdoo_shift_user_2_demo"
"beesdoo_base.beesdoo_shift_user_2_demo"
)
self.setting_wizard = self.env["beesdoo.shift.config.settings"].sudo(

Loading…
Cancel
Save