diff options
| author | Rvo (Open ERP) <rvo@tinyerp.co.in> | 2010-09-18 11:56:08 +0530 |
|---|---|---|
| committer | Rvo (Open ERP) <rvo@tinyerp.co.in> | 2010-09-18 11:56:08 +0530 |
| commit | bf1de4c7d5f95c577e3a67e68f8d595f3ebd4e73 (patch) | |
| tree | fd9221e330dfab98061dacafb33404ea567b1397 /addons/hr_timesheet_sheet | |
| parent | 050344d175dc19e6b3cfa306bb2c01ddc977100a (diff) | |
| parent | 558352fba2af69a1015ec9a4c7bad90cc6683b4a (diff) | |
[MERGE]: lp:trunk-dev-addons2
bzr revid: rvo@tinyerp.co.in-20100918062608-gddpu7210ynvvuz4
Diffstat (limited to 'addons/hr_timesheet_sheet')
6 files changed, 45 insertions, 8 deletions
diff --git a/addons/hr_timesheet_sheet/__openerp__.py b/addons/hr_timesheet_sheet/__openerp__.py index 73bb496967f..1b554a6b242 100644 --- a/addons/hr_timesheet_sheet/__openerp__.py +++ b/addons/hr_timesheet_sheet/__openerp__.py @@ -56,6 +56,7 @@ The validation can be configured in the company: 'report/timesheet_report_view.xml', 'board_hr_timesheet_view.xml', 'report/hr_timesheet_report_view.xml', + 'wizard/hr_timesheet_current_view.xml', ], 'demo_xml': ['hr_timesheet_sheet_demo.xml', diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py index acbe668df25..624ce72d659 100644 --- a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py +++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py @@ -754,7 +754,7 @@ class res_company(osv.osv): "computation for one sheet. Set this to 0 if you do not want any control."), } _defaults = { - 'timesheet_range': lambda *args: 'month', + 'timesheet_range': lambda *args: 'week', 'timesheet_max_difference': lambda *args: 0.0 } diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml b/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml index e4c4fde9cc9..d9b666cfbf1 100644 --- a/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml +++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml @@ -148,10 +148,10 @@ </notebook> <field name="state"/> <group col="4" colspan="2"> - <button name="button_confirm" states="draft" string="Confirm" type="object" icon="terp-gtk-jump-to-rtl"/> + <button name="button_confirm" states="draft" string="Confirm" type="object" icon="terp-camera_test"/> <button name="action_set_to_draft" states="done" string="Set to Draft" type="object" icon="terp-stock_effects-object-colorize"/> <button name="cancel" states="confirm" string="Refuse" type="workflow" icon="gtk-cancel"/> - <button name="done" states="confirm" string="Accept" type="workflow" icon="terp-camera_test"/> + <button name="done" states="confirm" string="Approve" type="workflow" icon="gtk-jump-to"/> </group> </form> </field> @@ -165,7 +165,7 @@ <search string="Search Timesheet"> <group col="10" colspan="4"> <filter icon="terp-document-new" string="In Draft" domain="[('state','in',('draft', 'new'))]" help="Unvalidated Timesheets"/> - <filter icon="terp-gtk-go-back-rtl" string="To Approve" domain="[('state','=','confirm')]" help="Confirmed Timesheets"/> + <filter icon="terp-camera_test" string="To Approve" domain="[('state','=','confirm')]" help="Confirmed Timesheets"/> <separator orientation="vertical"/> <field name="user_id" select="1"/> <field name="date_from"/> @@ -204,7 +204,7 @@ <menuitem action="hr_timesheet_sheet.act_hr_timesheet_sheet_form" id="menu_act_project_management_timesheet_sheet_form" parent="base.menu_project_management_time_tracking" sequence="5"/> <menuitem action="act_hr_timesheet_sheet_form" id="menu_act_hr_timesheet_sheet_form" parent="hr_attendance.menu_hr_time_tracking" - sequence="1"/> + sequence="2"/> <!-- Company inheritancy diff --git a/addons/hr_timesheet_sheet/security/ir.model.access.csv b/addons/hr_timesheet_sheet/security/ir.model.access.csv index 9c477432e79..3ca4d966f78 100644 --- a/addons/hr_timesheet_sheet/security/ir.model.access.csv +++ b/addons/hr_timesheet_sheet/security/ir.model.access.csv @@ -3,6 +3,11 @@ "access_hr_timesheet_sheet_sheet_day","hr_timesheet_sheet.sheet.day","model_hr_timesheet_sheet_sheet_day","base.group_hr_user",1,1,1,1 "access_hr_timesheet_sheet_sheet_account","hr_timesheet_sheet.sheet.account","model_hr_timesheet_sheet_sheet_account","base.group_hr_user",1,1,1,1 "access_hr_timesheet_report","hr.timesheet.report","model_hr_timesheet_report","base.group_hr_manager",1,1,1,1 -"access_hr_timesheet_sheet_sheet_manager","hr_timesheet_sheet.sheet.manager","model_hr_timesheet_sheet_sheet","base.group_hr_manager",1,0,0,0 +"access_hr_timesheet_sheet_sheet_manager","hr_timesheet_sheet.sheet.manager","model_hr_timesheet_sheet_sheet","base.group_hr_manager",1,1,1,1 "access_hr_timesheet_sheet_sheet_system","hr_timesheet_sheet.sheet.system","model_hr_timesheet_sheet_sheet","base.group_system",1,0,0,0 "access_timesheet_report_manager","timesheet.report.manager","model_timesheet_report","base.group_hr_manager",1,1,1,1 +"access_hr_timesheet_sheet_sheet_employee","hr_timesheet_sheet.sheet.employee","model_hr_timesheet_sheet_sheet","base.group_user",1,0,0,0 +"access_hr_timesheet_sheet_sheet_day_manager","hr_timesheet_sheet.sheet.day.manager","model_hr_timesheet_sheet_sheet_day","base.group_hr_manager",1,1,1,1 +"access_hr_timesheet_sheet_sheet_account_manager","hr_timesheet_sheet.sheet.account.manager","model_hr_timesheet_sheet_sheet_account","base.group_hr_manager",1,1,1,1 +"access_hr_timesheet_sheet_sheet_day_employee","hr_timesheet_sheet.sheet.day.employee","model_hr_timesheet_sheet_sheet_day","base.group_user",1,0,0,0 +"access_hr_timesheet_sheet_sheet_account_employee","hr_timesheet_sheet.sheet.account.employee","model_hr_timesheet_sheet_sheet_account","base.group_user",1,0,0,0 diff --git a/addons/hr_timesheet_sheet/test/test_hr_timesheet_sheet.yml b/addons/hr_timesheet_sheet/test/test_hr_timesheet_sheet.yml index d75968f5f16..bb5752d6c9e 100644 --- a/addons/hr_timesheet_sheet/test/test_hr_timesheet_sheet.yml +++ b/addons/hr_timesheet_sheet/test/test_hr_timesheet_sheet.yml @@ -93,7 +93,7 @@ !record {model: hr_timesheet_sheet.sheet, id: hr_timesheet_sheet_sheet_deddk0}: timesheet_ids: - account_id: account.analytic_sednacom - date: '05/26/2010' + date: '2010-05-26' name: 'Develop yaml for hr module' unit_amount: 3.00 amount: -90.00 @@ -124,7 +124,7 @@ !record {model: hr_timesheet_sheet.sheet, id: hr_timesheet_sheet_sheet_deddk0}: timesheet_ids: - account_id: account.analytic_sednacom - date: '05/26/2010' + date: '2010-05-26' name: 'Develop yaml for hr module' unit_amount: 2.0 amount: -90.00 diff --git a/addons/hr_timesheet_sheet/wizard/hr_timesheet_current_view.xml b/addons/hr_timesheet_sheet/wizard/hr_timesheet_current_view.xml new file mode 100644 index 00000000000..19eacdae472 --- /dev/null +++ b/addons/hr_timesheet_sheet/wizard/hr_timesheet_current_view.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="utf-8"?> +<openerp> + <data> + <record id="view_hr_timesheet_current_open" model="ir.ui.view"> + <field name="name">hr_timesheet_current_open.form</field> + <field name="model">hr.timesheet.current.open</field> + <field name="type">form</field> + <field name="arch" type="xml"> + <form string="Current Timesheet"> + <separator string="It will open the your current timesheet" colspan="4" /> + <group colspan="4" col="6"> + <button icon="gtk-cancel" special="cancel" string="Cancel"/> + <button icon="terp-camera_test" name="open_timesheet" string="Open" type="object"/> + </group> + </form> + </field> + </record> + + <record id="action_hr_timesheet_current_open" model="ir.actions.act_window"> + <field name="name">Current Timesheet</field> + <field name="res_model">hr.timesheet.current.open</field> + <field name="view_type">form</field> + <field name="view_mode">tree,form</field> + <field name="view_id" ref="view_hr_timesheet_current_open"/> + <field name="target">new</field> + </record> + + <menuitem action="action_hr_timesheet_current_open" icon="STOCK_NEW" id="menu_act_hr_timesheet_sheet_form_my_current" name="Current Timesheet" parent="hr_attendance.menu_hr_time_tracking" sequence="1"/> + + </data> +</openerp> |
