summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorRaphael Collet <rco@openerp.com>2014-07-08 10:16:16 +0200
committerRaphael Collet <rco@openerp.com>2014-07-08 10:16:16 +0200
commita6b025d6d9a10f1f6594e7cd1aa5367b4e6c3fcb (patch)
tree08f05bdc868328c691167c68792fa3b102889c8b /addons
parente9fae40faf742a0d2f89b0e01d7feb559aa142f7 (diff)
[FIX] models, fields: add model dependencies for models backed up by sql views
Diffstat (limited to 'addons')
-rw-r--r--addons/hr_timesheet_sheet/hr_timesheet_sheet.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py
index a2845171212..7bbcda29c09 100644
--- a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py
+++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py
@@ -532,6 +532,11 @@ class hr_timesheet_sheet_sheet_day(osv.osv):
'total_attendance': fields.float('Attendance', readonly=True),
'total_difference': fields.float('Difference', readonly=True),
}
+ _depends = {
+ 'hr.analytic.timesheet': ['line_id', 'sheet_id'],
+ 'account.analytic.line': ['date', 'unit_amount'],
+ 'hr.attendance': ['name', 'action', 'sheet_id'],
+ }
def init(self, cr):
cr.execute("""create or replace view hr_timesheet_sheet_sheet_day as