[FIX]: Remove unused space.

bzr revid: atp@tinyerp.com-20120505180349-tlrsdqqpjpm1haaf
This commit is contained in:
Atul Patel (OpenERP) 2012-05-05 23:33:49 +05:30
parent 3a6ac9be11
commit 80a595d631
3 changed files with 95 additions and 97 deletions

View File

@ -53,7 +53,7 @@ Note that:
],
'demo_xml': ['event_demo.xml'],
'test': ['test/process/event_draft2done.yml'],
'css': ['static/src/css/*.css'],
'css': ['static/src/css/event.css'],
'js': ['static/src/js/event.js'],
'qweb': ['static/src/xml/event_address.xml'],
'installable': True,

View File

@ -143,54 +143,53 @@
<field name="arch" type="xml">
<form string="Events" layout="manual">
<div class="oe_form_topbar" readonly="1">
<button string="Cancel Event" name="button_cancel" states="draft,confirm" type="object" icon="gtk-cancel"/>
<button string="Confirm Event" name="button_confirm" states="draft" type="object" icon="gtk-apply"/>
<button string="Event Done" name="button_done" states="confirm" type="object" icon="gtk-jump-to"/>
<button string="Set To Draft" name="button_draft" states="cancel,done" type="object" icon="gtk-convert"/>
<div class="oe_right">
<field name="state" nolabel="1" widget="statusbar" statusbar_visible="draft,open,done" statusbar_colors='{"pending":"blue"}'/>
</div>
</div>
<sheet string="Event Form" layout="auto">
<group col="2">
<group col="2">
<div class="oe_event_title">
<field name="name" nolabel="1" readonly="1"/>
</div>
<newline/>
<group colspan="4" name="venue">
<div class="oe_sub1"> Venue : </div>
<field name="location_id" nolabel="1" readonly="1"/>
</group>
</group>
<group>
<div id = "oe_mapbox" class="oe_mapbox"> </div><newline/>
<table>
<tr>
<td width="70px" class="oe_td_border">
Where
</td>
<td width="auto">
<field name="address_id" widget ="geo_address" nolabel="1"/>
</td>
<td width="210px">
<table align="right">
<tr>
<td class="oe_td_date_border">Start: </td><td><field name="date_begin" nolabel="1" readonly="1"/></td>
</tr>
<tr>
<td class="oe_td_date_border">End</td><td><field name="date_end" nolabel="1" readonly="1"/></td>
</tr>
</table>
</td>
</tr>
</table>
</group>
</group>
<button string="Cancel Event" name="button_cancel" states="draft,confirm" type="object" icon="gtk-cancel"/>
<button string="Confirm Event" name="button_confirm" states="draft" type="object" icon="gtk-apply"/>
<button string="Event Done" name="button_done" states="confirm" type="object" icon="gtk-jump-to"/>
<button string="Set To Draft" name="button_draft" states="cancel,done" type="object" icon="gtk-convert"/>
<div class="oe_right">
<field name="state" nolabel="1" widget="statusbar" statusbar_visible="draft,open,done" statusbar_colors='{"pending":"blue"}'/>
</div>
</div>
<sheet string="Event Form" layout="auto">
<group col="2">
<group col="2">
<div class="oe_event_title">
<field name="name" nolabel="1" readonly="1"/>
</div>
<newline/>
<group colspan="4" name="venue">
<div class="oe_sub1"> Venue : </div>
<field name="location_id" nolabel="1" readonly="1"/>
</group>
</group>
<group>
<div id = "oe_mapbox" class="oe_mapbox"> </div><newline/>
<table>
<tr>
<td width="70px" class="oe_td_border">
Where
</td>
<td width="auto">
<field name="address_id" widget ="geo_address" nolabel="1"/>
</td>
<td width="210px">
<table align="right">
<tr>
<td class="oe_td_date_border">Start: </td><td><field name="date_begin" nolabel="1" readonly="1"/></td>
</tr>
<tr>
<td class="oe_td_date_border">End</td><td><field name="date_end" nolabel="1" readonly="1"/></td>
</tr>
</table>
</td>
</tr>
</table>
</group>
</group>
<separator string="" colspan="4"/>
<label string="Event Details:" colspan="4"/>
<field name="note" colspan="4" nolabel="1" readonly="1"/>
<label string="Event Details:" colspan="4"/>
<field name="note" colspan="4" nolabel="1" readonly="1"/>
</sheet>
</form>
</field>

View File

@ -30,56 +30,55 @@
</field>
</record>
<record model="ir.ui.view" id="view_event_page_inherit">
<field name="name">Events Inherit</field>
<field name="model">event.event</field>
<field name="type">form</field>
<field name="inherit_id" ref="event.view_event_page"/>
<field name="arch" type="xml">
<xpath expr="//group[@name='venue']" position="after">
<field name="event_item_ids" nolabel="1">
<tree editable="top" string="Event Items">
<field name="product_id" readonly="1" />
<field name="sales_end_date" readonly="1"/>
<field name="price" readonly="1"/>
<!-- <field name="max_qty" readonly="1" groups="event.group_event_manager"/>-->
<field name="qty" attrs="{'readonly':[('product_id','=',False)]}" groups="event.group_event_user" />
</tree>
</field>
<newline/>
<div class="oe_right">
<button name="order_now" string="Order Now" type="object" icon="gtk-apply"/>
</div>
</xpath>
</field>
</record>
<record model="ir.ui.view" id="view_event_page_inherit">
<field name="name">Events Inherit</field>
<field name="model">event.event</field>
<field name="type">form</field>
<field name="inherit_id" ref="event.view_event_page"/>
<field name="arch" type="xml">
<xpath expr="//group[@name='venue']" position="after">
<field name="event_item_ids" nolabel="1">
<tree editable="top" string="Event Items">
<field name="product_id" readonly="1" />
<field name="sales_end_date" readonly="1"/>
<field name="price" readonly="1"/>
<!-- <field name="max_qty" readonly="1" groups="event.group_event_manager"/>-->
<field name="qty" attrs="{'readonly':[('product_id','=',False)]}" groups="event.group_event_user" />
</tree>
</field>
<newline/>
<div class="oe_right">
<button name="order_now" string="Order Now" type="object" icon="gtk-apply"/>
</div>
</xpath>
</field>
</record>
<record model="ir.ui.view" id="view_event_form_inherit">
<field name="name">Events Inherit</field>
<field name="model">event.event</field>
<field name="type">form</field>
<field name="inherit_id" ref="event.view_event_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@string='Extra Info']" position="after">
<page string="Event Item">
<field name="event_item_ids" nolabel="1">
<tree editable="top" string="Event Items">
<field name="product_id" string="Ticket Type" domain="[('event_ok','=',True)]" on_change="onchange_product_id(product_id)"/>
<field name="sales_end_date" />
<field name="price"/>
<!-- <field name="max_qty" groups="event.group_event_manager"/> -->
<field name="qty" attrs="{'readonly':[('product_id','=',False)]}" groups="event.group_event_user"/>
</tree>
</field>
<newline/>
<div class="oe_right">
<button name="order_now" string="Order Now" type="object" icon="gtk-apply"/>
</div>
</page>
</xpath>
</field>
</record>
<record model="ir.ui.view" id="view_event_form_inherit">
<field name="name">Events Inherit</field>
<field name="model">event.event</field>
<field name="type">form</field>
<field name="inherit_id" ref="event.view_event_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@string='Extra Info']" position="after">
<page string="Event Item">
<field name="event_item_ids" nolabel="1">
<tree editable="top" string="Event Items">
<field name="product_id" string="Ticket Type" domain="[('event_ok','=',True)]" on_change="onchange_product_id(product_id)"/>
<field name="sales_end_date" />
<field name="price"/>
<!-- <field name="max_qty" groups="event.group_event_manager"/> -->
<field name="qty" attrs="{'readonly':[('product_id','=',False)]}" groups="event.group_event_user"/>
</tree>
</field>
<newline/>
<div class="oe_right">
<button name="order_now" string="Order Now" type="object" icon="gtk-apply"/>
</div>
</page>
</xpath>
</field>
</record>
<record id="view_event_kanban_inherit" model="ir.ui.view">
<field name="name">event.inherit.kanban</field>