diff --git a/work.py b/work.py index 13f8b1cb0f..474370e49d 100644 --- a/work.py +++ b/work.py @@ -162,7 +162,7 @@ class OpenWork(Wizard): def _action_open_work(self, data): model_data_obj = self.pool.get('ir.model.data') act_window_obj = self.pool.get('ir.action.act_window') - act_window_id = model_data_obj.get_id('timesheet', 'act_work_tree2') + act_window_id = model_data_obj.get_id('timesheet', 'act_work_hours_board') res = act_window_obj.read(act_window_id) res['pyson_context'] = PYSONEncoder().encode({ 'from_date': data['form']['from_date'], diff --git a/work.xml b/work.xml index f93dd90f9c..6f50898dae 100644 --- a/work.xml +++ b/work.xml @@ -138,12 +138,6 @@ this repository contains the full copyright notices and license terms. --> - - Hours per Work - timesheet.work.open - - timesheet.work @@ -165,7 +159,7 @@ this repository contains the full copyright notices and license terms. --> Hours per Work timesheet.work - [('parent', '=', False)] + @@ -173,10 +167,35 @@ this repository contains the full copyright notices and license terms. --> - - Hours per Work - timesheet.work.open2 + + + board + + + + + + + + + + + + + ]]> + + + Hours per Work + + + + + + + timesheet.work.open.init form @@ -191,8 +210,14 @@ this repository contains the full copyright notices and license terms. --> ]]> - + + + Hours per Work + timesheet.work.open + + + Hours per Work