Browse Source

[WIP] b_shift : give access to backend to attendance sheets generic group

pull/125/head
Elouan Le Bars 5 years ago
parent
commit
ede1de4688
  1. 2
      beesdoo_shift/data/cron.xml
  2. 14
      beesdoo_shift/security/group.xml

2
beesdoo_shift/data/cron.xml

@ -1,5 +1,5 @@
<odoo> <odoo>
<data noupdate="1">
<data noupdate="0">
<record id="ir_cron_update_today" model="ir.cron"> <record id="ir_cron_update_today" model="ir.cron">
<field name="name">Update Cooperatoor status base on the date</field> <field name="name">Update Cooperatoor status base on the date</field>
<field name="interval_number">24</field> <field name="interval_number">24</field>

14
beesdoo_shift/security/group.xml

@ -1,11 +1,11 @@
<odoo> <odoo>
<data noupdate="1">
<data noupdate="0">
<record id="group_shift_attendance_sheet" model="res.groups"> <record id="group_shift_attendance_sheet" model="res.groups">
<field name="name">Attendance Sheet Access</field>
<field name="name">Attendance Sheet Generic Access</field>
<field name="category_id" ref="base.module_category_cooperative_management"/> <field name="category_id" ref="base.module_category_cooperative_management"/>
</record> </record>
<record id="group_shift_attendance" model="res.groups"> <record id="group_shift_attendance" model="res.groups">
<field name="name">Shift Attendance</field>
<field name="name">Shift and Worker Access</field>
<field name="category_id" ref="base.module_category_cooperative_management"/> <field name="category_id" ref="base.module_category_cooperative_management"/>
</record> </record>
<record id="group_shift_management" model="res.groups"> <record id="group_shift_management" model="res.groups">
@ -26,5 +26,13 @@
/> />
<field name="users" eval="[(4, ref('base.user_root'))]"/> <field name="users" eval="[(4, ref('base.user_root'))]"/>
</record> </record>
<record model="ir.ui.menu" id="base.menu_board_root">
<field name="groups_id" eval="[(6,0,[ref('group_shift_attendance_sheet')])]"/>
</record>
<!-- <template id="website.user_navbar">
<field name="groups" eval="[(6,0,[ref('group_shift_attendance_sheet')])]"/>
</template> -->
</data> </data>
</odoo> </odoo>
Loading…
Cancel
Save