diff options
| author | Bharat Devnani (OpenERP) <bde@tinyerp.com> | 2012-06-28 14:19:03 +0530 |
|---|---|---|
| committer | Bharat Devnani (OpenERP) <bde@tinyerp.com> | 2012-06-28 14:19:03 +0530 |
| commit | 86ef8d586c66cc00be1a12dede071e8cee9166f1 (patch) | |
| tree | 8f5c6fd1d49f25ab4ddb7478c969eff0c1c37482 | |
| parent | 0e77215c1b19b53a93a41826b3ced78345f1c0f0 (diff) | |
[IMP] improved some views of project module
bzr revid: bde@tinyerp.com-20120628084903-7clyjhob6n6mm9dr
| -rw-r--r-- | addons/project_issue/project_issue_view.xml | 4 | ||||
| -rw-r--r-- | addons/project_issue_sheet/project_issue_sheet_view.xml | 3 | ||||
| -rw-r--r-- | addons/resource/resource.py | 4 | ||||
| -rw-r--r-- | addons/resource/resource_view.xml | 40 |
4 files changed, 27 insertions, 24 deletions
diff --git a/addons/project_issue/project_issue_view.xml b/addons/project_issue/project_issue_view.xml index 0d8e320c5cb..fe44be8ab17 100644 --- a/addons/project_issue/project_issue_view.xml +++ b/addons/project_issue/project_issue_view.xml @@ -112,8 +112,8 @@ <field name="active"/> </group> <group colspan="4" col="4"> - <separator string="State" colspan="4"/> - <field name="state" groups="base.group_no_one"/> + <separator string="Status" colspan="4"/> + <field name="state" groups="base.group_no_one" string="Status"/> </group> </page> </notebook> diff --git a/addons/project_issue_sheet/project_issue_sheet_view.xml b/addons/project_issue_sheet/project_issue_sheet_view.xml index d883fadf2d9..cb2d1f70c96 100644 --- a/addons/project_issue_sheet/project_issue_sheet_view.xml +++ b/addons/project_issue_sheet/project_issue_sheet_view.xml @@ -11,9 +11,8 @@ <attribute name="on_change">on_change_project(project_id)</attribute> </field> <field name="active" position="after"> - <separator string="Analytic Account" colspan="4"/> <newline/> - <group colspan="4" col="4"> + <group colspan="4"> <field name="analytic_account_id" domain="[('parent_id','!=',False),('partner_id', '=', partner_id),('type', '!=', 'view')]" on_change='on_change_account_id(analytic_account_id)'/> diff --git a/addons/resource/resource.py b/addons/resource/resource.py index c399e0333b0..9a7fadc4c82 100644 --- a/addons/resource/resource.py +++ b/addons/resource/resource.py @@ -262,8 +262,8 @@ class resource_calendar_attendance(osv.osv): '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), '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_to' : fields.float("Work to", size=8, required=True, help="Working time will end at"), + '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), 'calendar_id' : fields.many2one("resource.calendar", "Resource's Calendar", required=True), } diff --git a/addons/resource/resource_view.xml b/addons/resource/resource_view.xml index 4b9be764279..4dde2ca4860 100644 --- a/addons/resource/resource_view.xml +++ b/addons/resource/resource_view.xml @@ -125,6 +125,7 @@ <field name="dayofweek"/> <field name="hour_from" widget="float_time"/> <field name="hour_to" widget="float_time"/> + <field name="date_from"/> </tree> </field> </record> @@ -139,7 +140,7 @@ <field name="name"/> <field name="date_from"/> <field name="dayofweek"/> - <label for="hour_from" string="Hours"/> + <label for="hour_from" string="Hours" help="Start and End time of working"/> <div> <field name="hour_from" 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="arch" type="xml"> <form string="Leave Detail" version="7.0"> - <sheet> - <group> - <group> - <field name="resource_id" on_change="onchange_resource(resource_id)"/> - <field name="name" string="Reason"/> - <label for="date_from" string="Duration"/> - <div> - <field name="date_from" nolabel="1"/> - - <field name="date_to" nolabel="1"/> - </div> - </group> - <group> - <field name="calendar_id"/> - <field name="company_id" widget="selection" groups="base.group_multi_company"/> - </group> - </group> - </sheet> + <sheet> + <group> + <group> + <field name="resource_id" on_change="onchange_resource(resource_id)"/> + <field name="name" string="Reason"/> + </group> + <group> + <field name="calendar_id" string="Working Period"/> + <field name="company_id" widget="selection" groups="base.group_multi_company"/> + </group> + <group col="2" colspan="4"> + <label for="date_from" string="Duration"/> + <div> + <field name="date_from" class="oe_inline"/>- + <field name="date_to" class="oe_inline"/> + </div> + </group> + </group> + </sheet> </form> </field> </record> + <record id="resource_calendar_leave_tree" model="ir.ui.view"> <field name="name">resource.calendar.leaves.tree</field> <field name="model">resource.calendar.leaves</field> |
