[FIX] hr_timesheet, account_analytic_analysis: fixed references to model
hr.analytic.timesheet. In commit 14183ba2be this model
has been removed, and the module is now using account.analytic.line directly.
This commit is contained in:
committed by
Thibault Delavallée
parent
c7d4620226
commit
2c8a79fde9
@@ -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')
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user