From 2c8a79fde98ca7c1ea985138b3191b83d1502873 Mon Sep 17 00:00:00 2001 From: Gaurav Panchal Date: Fri, 29 May 2015 17:59:37 +0530 Subject: [PATCH] [FIX] hr_timesheet, account_analytic_analysis: fixed references to model hr.analytic.timesheet. In commit 14183ba2be54a10247419f110f512cc6844a41b4 this model has been removed, and the module is now using account.analytic.line directly. --- .../analytic_account_demo.yml | 2 +- addons/hr_timesheet/hr_timesheet_demo.yml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/account_analytic_analysis/analytic_account_demo.yml b/addons/account_analytic_analysis/analytic_account_demo.yml index 45ca313ef74..c538539085d 100644 --- a/addons/account_analytic_analysis/analytic_account_demo.yml +++ b/addons/account_analytic_analysis/analytic_account_demo.yml @@ -12,4 +12,4 @@ 'to_invoice': ref('hr_timesheet_invoice.timesheet_invoice_factor1'), 'unit_amount': 100, } - self._update(cr, uid, 'hr.analytic.timesheet', 'hr_timesheet', vals, 'working_hours_maintenance') + self._update(cr, uid, 'account.analytic.line', 'hr_timesheet', vals, 'working_hours_maintenance') diff --git a/addons/hr_timesheet/hr_timesheet_demo.yml b/addons/hr_timesheet/hr_timesheet_demo.yml index cd4eb4aed68..e97dfd06c07 100644 --- a/addons/hr_timesheet/hr_timesheet_demo.yml +++ b/addons/hr_timesheet/hr_timesheet_demo.yml @@ -17,7 +17,7 @@ 'general_account_id': expense_account_id[0], 'journal_id': ref('analytic_journal') } - self._update(cr, uid, 'hr.analytic.timesheet', 'hr_timesheet', vals, 'working_hours_requirements') + self._update(cr, uid, 'account.analytic.line', 'hr_timesheet', vals, 'working_hours_requirements') vals = { 'name': 'Design and specification', 'user_id': ref('base.user_root'), @@ -30,7 +30,7 @@ 'general_account_id': expense_account_id[0], 'journal_id': ref('analytic_journal') } - self._update(cr, uid, 'hr.analytic.timesheet', 'hr_timesheet', vals, 'working_hours_design') + self._update(cr, uid, 'account.analytic.line', 'hr_timesheet', vals, 'working_hours_design') vals = { 'name': 'Coding and module testing', 'user_id': ref('base.user_root'), @@ -43,7 +43,7 @@ 'general_account_id': expense_account_id[0], 'journal_id': ref('analytic_journal') } - self._update(cr, uid, 'hr.analytic.timesheet', 'hr_timesheet', vals, 'working_hours_coding') + self._update(cr, uid, 'account.analytic.line', 'hr_timesheet', vals, 'working_hours_coding') vals = { 'name': 'Integration and system testing', 'user_id': ref('base.user_root'), @@ -56,7 +56,7 @@ 'general_account_id': expense_account_id[0], 'journal_id': ref('analytic_journal') } - self._update(cr, uid, 'hr.analytic.timesheet', 'hr_timesheet', vals, 'working_hours_testing') + self._update(cr, uid, 'account.analytic.line', 'hr_timesheet', vals, 'working_hours_testing') vals = { 'name': 'Delivery and maintenance', 'user_id': ref('base.user_root'), @@ -69,4 +69,4 @@ 'general_account_id': expense_account_id[0], 'journal_id': ref('analytic_journal') } - self._update(cr, uid, 'hr.analytic.timesheet', 'hr_timesheet', vals, 'working_hours_maintenance') + self._update(cr, uid, 'account.analytic.line', 'hr_timesheet', vals, 'working_hours_maintenance')