diff options
| author | Amit Patel <apa@tinyerp.com> | 2012-10-25 12:31:33 +0530 |
|---|---|---|
| committer | Amit Patel <apa@tinyerp.com> | 2012-10-25 12:31:33 +0530 |
| commit | 3e4e8006de2c4eb4ab77bbc3692ba0b9d3d4e4c8 (patch) | |
| tree | f9ec948c2332fbbfc7458e903d534526a50297cc /addons/hr_timesheet_sheet | |
| parent | b59e7d17ed945dfadaf9f6140789bb2ecbca2617 (diff) | |
| parent | 013f14931bdc13c63fa6e169cf7fff364d5dda5a (diff) | |
[MERGE]:trunk
bzr revid: apa@tinyerp.com-20121025070133-x6g4can9le7p4d5z
Diffstat (limited to 'addons/hr_timesheet_sheet')
| -rw-r--r-- | addons/hr_timesheet_sheet/hr_timesheet_sheet.py | 6 | ||||
| -rw-r--r-- | addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml | 34 | ||||
| -rw-r--r-- | addons/hr_timesheet_sheet/static/src/xml/timesheet.xml | 8 |
3 files changed, 23 insertions, 25 deletions
diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py index e62134ee38a..f54ea1a4f18 100644 --- a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py +++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py @@ -206,9 +206,9 @@ class hr_timesheet_sheet(osv.osv): ('draft','Open'), ('confirm','Waiting Approval'), ('done','Approved')], 'Status', select=True, required=True, readonly=True, - help=' * The \'Draft\' state is used when a user is encoding a new and unconfirmed timesheet. \ - \n* The \'Confirmed\' state is used for to confirm the timesheet by user. \ - \n* The \'Done\' state is used when users timesheet is accepted by his/her senior.'), + help=' * The \'Draft\' status is used when a user is encoding a new and unconfirmed timesheet. \ + \n* The \'Confirmed\' status is used for to confirm the timesheet by user. \ + \n* The \'Done\' status is used when users timesheet is accepted by his/her senior.'), 'state_attendance' : fields.related('employee_id', 'state', type='selection', selection=[('absent', 'Absent'), ('present', 'Present')], string='Current Status', readonly=True), 'total_attendance': fields.function(_total, method=True, string='Total Attendance', multi="_total"), 'total_timesheet': fields.function(_total, method=True, string='Total Timesheet', multi="_total"), diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml b/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml index fc35a17377f..f5438432927 100644 --- a/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml +++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml @@ -54,18 +54,18 @@ </header> <sheet> <label for="employee_id" class="oe_edit_only"/> - <h1><field name="employee_id" on_change="onchange_employee_id(employee_id)"/></h1> + <h1><field name="employee_id" on_change="onchange_employee_id(employee_id)" class="oe_inline"/></h1> <group> <group> <label for="date_from" string="Timesheet Period"/> - <div><field name="date_from"/> to <field name="date_to"/></div> + <div><field name="date_from" class="oe_inline"/> to <field name="date_to" class="oe_inline"/></div> <field name="name" invisible="1"/> - <field name="department_id"/> + <field name="department_id" invisible="1"/> <field name="company_id" groups="base.group_multi_company"/> </group> <group> <field name="total_attendance" widget="float_time" groups="base.group_hr_attendance"/> - <field name="total_timesheet" widget="float_time"/> + <field name="total_timesheet" widget="float_time" groups="base.group_hr_attendance"/> <field name="total_difference" widget="float_time" groups="base.group_hr_attendance"/> <field name="user_id" invisible="1"/> </group> @@ -76,8 +76,8 @@ </widget> </page> <page string="Daily"> - <group colspan="4" col="3"> - <field context="{'user_id':user_id}" name="attendances_ids" nolabel="1" groups="base.group_hr_attendance"> + <group groups="base.group_hr_attendance"> + <field context="{'user_id':user_id}" name="attendances_ids" nolabel="1"> <tree string="Attendances" editable="bottom"> <field name="name"/> <field name="action"/> @@ -85,21 +85,19 @@ </tree> </field> <group> - <div align="right" groups="base.group_hr_manager,base.group_hr_attendance"> - <button name="attendance_action_change" attrs="{'invisible': [('state_attendance', '=', 'present')]}" type="object" string="Sign In" groups="base.group_hr_attendance"/> - <button name="attendance_action_change" attrs="{'invisible': ['|', ('state_attendance','=',False), ('state_attendance', '=', 'absent')]}" type="object" string="Sign Out" groups="base.group_hr_attendance"/> + <field name="state_attendance" nolabel="1"/> + <div align="right" groups="base.group_hr_manager"> + <button name="attendance_action_change" attrs="{'invisible': [('state_attendance', '=', 'present')]}" type="object" string="Sign In"/> + <button name="attendance_action_change" attrs="{'invisible': ['|', ('state_attendance','=',False), ('state_attendance', '=', 'absent')]}" type="object" string="Sign Out"/> </div> </group> </group> - <group col="4"> - <field name="state_attendance" groups="base.group_hr_attendance"/> - </group> - <field colspan="4" context="{'user_id':user_id}" name="timesheet_ids" nolabel="1"> + <field context="{'user_id':user_id}" name="timesheet_ids" nolabel="1"> <tree editable="top" string="Timesheet Lines"> <field name="date"/> <field domain="[('type','in',['normal', 'contract']), ('state', '<>', 'close'),('use_timesheets','=',1)]" name="account_id" on_change="on_change_account_id(account_id, user_id)" context="{'default_use_timesheets': 1}"/> <field name="name"/> - <field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, False, product_uom_id,journal_id)" widget="float_time"/> + <field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, False, product_uom_id,journal_id)" widget="float_time" string="Hours"/> <field name="to_invoice" widget="selection"/> <field invisible="1" name="journal_id"/> <field invisible="1" name="product_id" domain="[('type','=','service')]" on_change="on_change_unit_amount(product_id, unit_amount, False, product_uom_id,journal_id)"/> @@ -123,13 +121,13 @@ </form> </field> </page> - <page string="Summary"> - <field colspan="4" name="period_ids" nolabel="1"> + <page string="Summary" groups="base.group_hr_attendance"> + <field name="period_ids"> <tree colors="red:total_difference<0.1;blue:total_difference>=0.1" string="Period"> <field name="name"/> - <field name="total_attendance" widget="float_time" groups="base.group_hr_attendance"/> + <field name="total_attendance" widget="float_time"/> <field name="total_timesheet" widget="float_time"/> - <field name="total_difference" widget="float_time" groups="base.group_hr_attendance"/> + <field name="total_difference" widget="float_time"/> </tree> </field> </page> diff --git a/addons/hr_timesheet_sheet/static/src/xml/timesheet.xml b/addons/hr_timesheet_sheet/static/src/xml/timesheet.xml index 0c4ad857d3b..a5b2f779bd0 100644 --- a/addons/hr_timesheet_sheet/static/src/xml/timesheet.xml +++ b/addons/hr_timesheet_sheet/static/src/xml/timesheet.xml @@ -12,7 +12,7 @@ <t t-esc="date.toString('MMM d')"/> </th> </t> - <th class="oe_timesheet_weekly_date_head">TOTAL</th> + <th class="oe_timesheet_weekly_date_head">Total</th> </tr> <tr t-foreach="widget.accounts" t-as="account"> <td class="oe_timesheet_weekly_account"><t t-esc="widget.account_names[account.account]"/></td> @@ -36,8 +36,8 @@ <tr> <td> <div class="oe_timesheet_weekly_adding_tot"> - <div class="oe_timesheet_weekly_adding"><button>Add Row</button></div> - <div class="oe_timesheet_weekly_tottot"><span>TOTAL</span></div> + <div class="oe_timesheet_weekly_adding"><button>Add a Project</button></div> + <div class="oe_timesheet_weekly_tottot"><span>Total</span></div> </div> </td> <t t-set="day_count" t-value="0"/> @@ -53,4 +53,4 @@ </table> </div> </t> -</templates>
\ No newline at end of file +</templates> |
