[IMP] improved view for date fields

bzr revid: bde@tinyerp.com-20120625073040-mtdcgxi9tkjqg0a1
This commit is contained in:
Bharat Devnani (OpenERP) 2012-06-25 13:00:40 +05:30
parent 3ed27adc6d
commit 83d2af8676
1 changed files with 18 additions and 10 deletions

View File

@ -120,8 +120,8 @@
<tree string="Working Time" editable="top">
<field name="name"/>
<field name="dayofweek"/>
<field name="hour_from" widget="float_time" />
<field name="hour_to" widget="float_time" />
<field name="hour_from" widget="float_time"/>
<field name="hour_to" widget="float_time"/>
</tree>
</field>
</record>
@ -132,11 +132,16 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Working Time" version="7.0">
<field colspan="4" name="name"/>
<field name="date_from"/>
<field name="dayofweek"/>
<field name="hour_from" widget="float_time"/>
<field name="hour_to" widget="float_time"/>
<group colspan="4">
<field name="name"/>
<field name="date_from"/>
<field name="dayofweek"/>
<label for="hour_from" string="Hours"/>
<div>
<field name="hour_from" widget="float_time"/>-
<field name="hour_to" widget="float_time"/>
</div>
</group>
</form>
</field>
</record>
@ -232,9 +237,12 @@
<field name="calendar_id" string="Working Period"/>
<field name="company_id" widget="selection" groups="base.group_multi_company"/>
</group>
<group col="4">
<field name="date_from" string="Duration"/>
<field name="date_to" nolabel="1"/>
<group col="2" colspan="4">
<label for="date_from" string="Duration"/>
<div>
<field name="date_from" nolabel="1"/> -
<field name="date_to" nolabel="1"/>
</div>
</group>
</group>
</sheet>