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.
 
 
 
 
 

137 lines
6.4 KiB

<?xml version="1.0" encoding="utf-8" ?>
<openerp>
<data>
<!--KANBAN [MONTH]-->
<record id="kanban_salon_module_month" model="ir.ui.view">
<field name="name">salon.month.kanban</field>
<field name="model">salon.month</field>
<field name="arch" type="xml">
<kanban>
<field name="month"/>
<field name="year"/>
<field name="name"/>
<templates>
<t t-name="kanban-box">
<a type="open">
<div>
<div style="background-image: url('/salon_operation/static/src/img/calendar.jpg'); width:204px;height:204px;">
<center>
<div style="height:40px">
<div style="height:20px;text-align:right">
<field name="booked" attrs="{'invisible' : True}"/>
<img src="/salon_operation/static/src/img/tick_gray.png"
width="40"
height="40"
attrs="{'invisible' : [('booked', '=', True)]}"/>
<img src="/salon_operation/static/src/img/tick_green_001.png"
width="40"
height="40"
attrs="{'invisible' : [('booked', '=', False)]}"/>
</div>
</div>
<h2 style="color:black;">
<field name="year" />
</h2>
<font size="80" style="color:black;">
<b>
<!--<field name="month"/>-->
<field name="month_show"/>
</b>
</font>
</center>
</div>
</div>
<center>
<field name="name"/>
</center>
</a>
</t>
</templates>
</kanban>
</field>
</record>
<!--TREE [MONTH]-->
<record model="ir.ui.view" id="tree_salon_module_month">
<field name="name">salon.month.tree</field>
<field name="model">salon.month</field>
<field name="arch" type="xml">
<tree>
<field name="name"/>
<field name="month"/>
<field name="year"/>
</tree>
</field>
</record>
<!--FORM [MONTH]-->
<record model="ir.ui.view" id="form_salon_module_month">
<field name="name">salon.month.form</field>
<field name="model">salon.month</field>
<field name="arch" type="xml">
<form>
<sheet>
<group>
<group>
<field name="name" required="1"/>
<field name="display_booked" attrs="{'invisible' : True}"/>
</group>
<group>
<field name="month" required="1"/>
<field name="year" required="1"/>
<field name="booked"/>
</group>
</group>
<notebook>
<page string="Days">
<field name="day_lines" string="Days">
<tree colors="red:day_type=='off'">
<field name="name"/>
<field name="day_type"/>
<field name="off_reason"/>
<field name="booked"/>
</tree>
</field>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<!--ACTION [MONTH]-->
<record id="action_month" model="ir.actions.act_window">
<field name="name">Schedule Month</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">salon.month</field>
<field name="view_type">form</field>
<field name="view_mode">kanban,tree,form</field>
<field name="context">{}</field>
<field name="domain">[]</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to create a new month.
</p>
</field>
</record>
<!--MENU [MONTH]-->
<menuitem id="menu_month"
parent="base.menu_sales"
action="action_month"
sequence="12"/>
<!--========================== DAY LINES ==================================-->
<!--<record model="ir.ui.view" id="form_salon_module_month_line">-->
<!--<field name="name">salon.month.line.form</field>-->
<!--<field name="model">salon.month.line</field>-->
<!--<field name="arch" type="xml">-->
<!--<form>-->
<!--<group>-->
<!--<field name="days" required="1"/>-->
<!--<field name="day_stat" widget="radio"/>-->
<!--</group>-->
<!--</form>-->
<!--</field>-->
<!--</record>-->
</data>
</openerp>