You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
2.9 KiB
74 lines
2.9 KiB
<odoo>
|
|
<record model="ir.actions.act_window" id="action_shift_template">
|
|
<field name="name">Planning Action</field>
|
|
<field name="res_model">beesdoo.shift.template</field>
|
|
<field name="view_mode">kanban,tree,form,calendar,pivot</field>
|
|
<field name="context">{'group_by': 'day_nb_id',
|
|
'search_default_planning_id': active_id,
|
|
'default_planning_id': active_id}
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.actions.act_window" id="action_generate_shift_wizard">
|
|
<field name="name">Instanciate Planning Action</field>
|
|
<field name="res_model">beesddoo.shift.generate_planning</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="target">new</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="planning_view_form">
|
|
<field name="name">Planning Form</field>
|
|
<field name="model">beesdoo.shift.planning</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<header>
|
|
<button type="action"
|
|
name="%(action_generate_shift_wizard)d"
|
|
string="Generate shifts" colspan="2" />
|
|
</header>
|
|
<sheet>
|
|
<div class="oe_button_box" name="button_box">
|
|
<button class="oe_stat_button" type="action"
|
|
name="%(action_shift_template)d" icon="fa-book"
|
|
string="Shifts Template">
|
|
<!-- <field string="Ventes" name="sale_order_count"
|
|
widget="statinfo" modifiers="{'readonly': true}"/> -->
|
|
</button>
|
|
</div>
|
|
<div class="oe_title">
|
|
<h1>
|
|
<field name="name" placeholder="name" />
|
|
</h1>
|
|
</div>
|
|
<group>
|
|
<field name="sequence" />
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="planning_view_tree">
|
|
<field name="name">Planning Tree</field>
|
|
<field name="model">beesdoo.shift.planning</field>
|
|
<field name="arch" type="xml">
|
|
<tree>
|
|
<field name="sequence" />
|
|
<field name="name" />
|
|
<button type="action" name="%(action_shift_template)d"
|
|
string="Shifts Template" />
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Actions -->
|
|
<record model="ir.actions.act_window" id="action_planning">
|
|
<field name="name">Planning Action</field>
|
|
<field name="res_model">beesdoo.shift.planning</field>
|
|
<field name="view_mode">tree,form</field>
|
|
</record>
|
|
|
|
<menuitem name="Planning Week" id="menu_planning" parent="menu_template_top"
|
|
sequence="10" action="action_planning" />
|
|
|
|
</odoo>
|