[IMP] improved some views of project module

bzr revid: bde@tinyerp.com-20120628084903-7clyjhob6n6mm9dr
This commit is contained in:
Bharat Devnani (OpenERP) 2012-06-28 14:19:03 +05:30
parent 0e77215c1b
commit 86ef8d586c
4 changed files with 27 additions and 24 deletions

View File

@ -112,8 +112,8 @@
<field name="active"/> <field name="active"/>
</group> </group>
<group colspan="4" col="4"> <group colspan="4" col="4">
<separator string="State" colspan="4"/> <separator string="Status" colspan="4"/>
<field name="state" groups="base.group_no_one"/> <field name="state" groups="base.group_no_one" string="Status"/>
</group> </group>
</page> </page>
</notebook> </notebook>

View File

@ -11,9 +11,8 @@
<attribute name="on_change">on_change_project(project_id)</attribute> <attribute name="on_change">on_change_project(project_id)</attribute>
</field> </field>
<field name="active" position="after"> <field name="active" position="after">
<separator string="Analytic Account" colspan="4"/>
<newline/> <newline/>
<group colspan="4" col="4"> <group colspan="4">
<field name="analytic_account_id" <field name="analytic_account_id"
domain="[('parent_id','!=',False),('partner_id', '=', partner_id),('type', '!=', 'view')]" domain="[('parent_id','!=',False),('partner_id', '=', partner_id),('type', '!=', 'view')]"
on_change='on_change_account_id(analytic_account_id)'/> on_change='on_change_account_id(analytic_account_id)'/>

View File

@ -262,8 +262,8 @@ class resource_calendar_attendance(osv.osv):
'name' : fields.char("Name", size=64, required=True), 'name' : fields.char("Name", size=64, required=True),
'dayofweek': fields.selection([('0','Monday'),('1','Tuesday'),('2','Wednesday'),('3','Thursday'),('4','Friday'),('5','Saturday'),('6','Sunday')], 'Day of Week', required=True, select=True), 'dayofweek': fields.selection([('0','Monday'),('1','Tuesday'),('2','Wednesday'),('3','Thursday'),('4','Friday'),('5','Saturday'),('6','Sunday')], 'Day of Week', required=True, select=True),
'date_from' : fields.date('Starting Date'), 'date_from' : fields.date('Starting Date'),
'hour_from' : fields.float('Work from', size=8, required=True, help="Working time will start from", select=True), 'hour_from' : fields.float('Work from', size=8, required=True, help="Start and End time of working.", select=True),
'hour_to' : fields.float("Work to", size=8, required=True, help="Working time will end at"), 'hour_to' : fields.float("Work to", size=8, required=True),
'calendar_id' : fields.many2one("resource.calendar", "Resource's Calendar", required=True), 'calendar_id' : fields.many2one("resource.calendar", "Resource's Calendar", required=True),
} }

View File

@ -125,6 +125,7 @@
<field name="dayofweek"/> <field name="dayofweek"/>
<field name="hour_from" widget="float_time"/> <field name="hour_from" widget="float_time"/>
<field name="hour_to" widget="float_time"/> <field name="hour_to" widget="float_time"/>
<field name="date_from"/>
</tree> </tree>
</field> </field>
</record> </record>
@ -139,7 +140,7 @@
<field name="name"/> <field name="name"/>
<field name="date_from"/> <field name="date_from"/>
<field name="dayofweek"/> <field name="dayofweek"/>
<label for="hour_from" string="Hours"/> <label for="hour_from" string="Hours" help="Start and End time of working"/>
<div> <div>
<field name="hour_from" widget="float_time" class="oe_inline"/> - <field name="hour_from" widget="float_time" class="oe_inline"/> -
<field name="hour_to" widget="float_time" class="oe_inline"/> <field name="hour_to" widget="float_time" class="oe_inline"/>
@ -232,26 +233,29 @@
<field name="type">form</field> <field name="type">form</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<form string="Leave Detail" version="7.0"> <form string="Leave Detail" version="7.0">
<sheet> <sheet>
<group> <group>
<group> <group>
<field name="resource_id" on_change="onchange_resource(resource_id)"/> <field name="resource_id" on_change="onchange_resource(resource_id)"/>
<field name="name" string="Reason"/> <field name="name" string="Reason"/>
<label for="date_from" string="Duration"/> </group>
<div> <group>
<field name="date_from" nolabel="1"/> - <field name="calendar_id" string="Working Period"/>
<field name="date_to" nolabel="1"/> <field name="company_id" widget="selection" groups="base.group_multi_company"/>
</div> </group>
</group> <group col="2" colspan="4">
<group> <label for="date_from" string="Duration"/>
<field name="calendar_id"/> <div>
<field name="company_id" widget="selection" groups="base.group_multi_company"/> <field name="date_from" class="oe_inline"/>-
</group> <field name="date_to" class="oe_inline"/>
</group> </div>
</sheet> </group>
</group>
</sheet>
</form> </form>
</field> </field>
</record> </record>
<record id="resource_calendar_leave_tree" model="ir.ui.view"> <record id="resource_calendar_leave_tree" model="ir.ui.view">
<field name="name">resource.calendar.leaves.tree</field> <field name="name">resource.calendar.leaves.tree</field>
<field name="model">resource.calendar.leaves</field> <field name="model">resource.calendar.leaves</field>