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.
118 lines
6.1 KiB
118 lines
6.1 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
<!--<record id="sale_order_inherited_010521355" model="ir.ui.view">-->
|
|
<!--<field name="name">sale.order.book.form.56351</field>-->
|
|
<!--<field name="model">sale.order</field>-->
|
|
<!--<field name="inherit_id" ref="sale.view_order_form"/>-->
|
|
<!--<field name="arch" type="xml">-->
|
|
<!--<field name="arch" type="xml">-->
|
|
<!--<xpath expr="//field[@name='partner_id']" position="after">-->
|
|
<!--<group>-->
|
|
<!--<field name="for_month" attrs="{'domain' : [('booked', '=', False)]}"/>-->
|
|
<!--<field name="for_month" required="1"-->
|
|
<!--string="Month"-->
|
|
<!--domain="[('booked','=',False)]"-->
|
|
<!--options="{'no_quick_create':True,'no_create_edit':True}"/>-->
|
|
<!--<field name="for_day" required="1" string="Day" options="{'no_quick_create':True,'no_create_edit':True}"/>-->
|
|
<!--<field name="for_time" required="1" string="Time" options="{'no_quick_create':True,'no_create_edit':True}"/>-->
|
|
<!--</group>-->
|
|
<!--<group>-->
|
|
<!--<div>-->
|
|
<!--<label for="char_id" string="Chair"/>-->
|
|
<!--<field name="char_id"-->
|
|
<!--attrs="{'readonly':[('state','not in',('draft'))]}"-->
|
|
<!--required="1"-->
|
|
<!--style="line-height: 18px;display: block;min-width: 150px;font-weight: bold !important;"/>-->
|
|
|
|
<!--<field name="employee_id"-->
|
|
<!--readonly="1"-->
|
|
<!--attrs="{'readonly':[('state','not in',('draft'))]}"-->
|
|
<!--required="1"-->
|
|
<!--string=" "/>-->
|
|
<!--</div>-->
|
|
<!--</group>-->
|
|
<!--</xpath>-->
|
|
<!--<xpath expr="//field[@name='state']" position="replace">-->
|
|
<!--<field name="state"-->
|
|
<!--widget="statusbar"-->
|
|
<!--statusbar_visible="draft,progress,cancel,done"-->
|
|
<!--statusbar_colors='{"invoice_except":"red","waiting_date":"blue"}'/>-->
|
|
<!--</xpath>-->
|
|
<!--</field>-->
|
|
|
|
<!--</field>-->
|
|
<!--</record>-->
|
|
|
|
|
|
|
|
<!--FORM [SALE-ORDER]-->
|
|
<record model="ir.ui.view" id="sale_order_form_0055114">
|
|
<field name="name">sale.order.form.inherited.book</field>
|
|
<field name="model">sale.order</field>
|
|
<field name="inherit_id" ref="sale.view_order_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//group[1]" position="after">
|
|
<field name="month_state_show" readonly="1" style="color:red"/>
|
|
<group>
|
|
<group>
|
|
<field name="for_month" required="1"
|
|
string="Month"
|
|
attrs="{'readonly':[('state','not in',('draft'))]}"
|
|
options="{'no_quick_create':True,'no_create_edit':True}"/>
|
|
<field name="for_day"
|
|
required="1"
|
|
string="Day"
|
|
attrs="{'readonly':[('state','not in',('draft'))]}"
|
|
options="{'no_quick_create':True,'no_create_edit':True}"/>
|
|
<field name="for_time"
|
|
required="1"
|
|
string="Time"
|
|
attrs="{'readonly':[('state','not in',('draft'))]}"
|
|
options="{'no_quick_create':True,'no_create_edit':True}"/>
|
|
</group>
|
|
<group>
|
|
<div>
|
|
<label for="char_id"
|
|
string="Chair"
|
|
style="line-height: 18px;display: block;min-width: 150px;font-weight: bold !important;"/>
|
|
<field name="char_id"
|
|
attrs="{'readonly':[('state','not in',('draft'))]}"
|
|
required="1" />
|
|
|
|
<field name="employee_id"
|
|
readonly="1"
|
|
attrs="{'readonly':[('state','not in',('draft'))]}"
|
|
string=" "/>
|
|
|
|
</div>
|
|
</group>
|
|
</group>
|
|
</xpath>
|
|
<xpath expr="//field[@name='state']" position="replace">
|
|
<field name="state"
|
|
widget="statusbar"
|
|
statusbar_visible="draft,progress,cancel,done"
|
|
statusbar_colors='{"invoice_except":"red","waiting_date":"blue"}'/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
<!--ACTION [SALE-ORDER]-->
|
|
<record id="sale.action_orders" model="ir.actions.act_window">
|
|
<field name="name">Sales Orders</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">sale.order</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="search_view_id" ref="sale.view_sales_order_filter"/>
|
|
<field name="context">{}
|
|
</field>
|
|
<field name="domain">[]</field>
|
|
<field name="help" type="html">
|
|
<p class="oe_view_nocontent_create">
|
|
Click to schedule
|
|
</p>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</openerp>
|