Fix search on ir.model.data for new inherit field for issue394
This commit is contained in:
1 parent
c679f4e4f7
commit
68d51afcfd
2 files changed
+5
No files matched your search
@@ -114,6 +114,7 @@ class EnterLines(Wizard):
|
||||
model_data_ids = model_data_obj.search(cursor, user, [
|
||||
('fs_id', '=', 'act_line_form'),
|
||||
('module', '=', 'timesheet'),
|
||||
('inherit', '=', False),
|
||||
], limit=1, context=context)
|
||||
model_data = model_data_obj.browse(cursor, user, model_data_ids[0],
|
||||
context=context)
|
||||
@@ -204,6 +205,7 @@ class OpenHoursEmployee(Wizard):
|
||||
model_data_ids = model_data_obj.search(cursor, user, [
|
||||
('fs_id', '=', 'act_hours_employee_form'),
|
||||
('module', '=', 'timesheet'),
|
||||
('inherit', '=', False),
|
||||
], limit=1, context=context)
|
||||
model_data = model_data_obj.browse(cursor, user, model_data_ids[0],
|
||||
context=context)
|
||||
|
||||
@@ -159,6 +159,7 @@ class OpenWork(Wizard):
|
||||
model_data_ids = model_data_obj.search(cursor, user, [
|
||||
('fs_id', '=', 'act_work_tree2'),
|
||||
('module', '=', 'timesheet'),
|
||||
('inherit', '=', False),
|
||||
], limit=1, context=context)
|
||||
model_data = model_data_obj.browse(cursor, user, model_data_ids[0],
|
||||
context=context)
|
||||
@@ -182,6 +183,7 @@ class OpenWork2(OpenWork):
|
||||
model_data_ids = model_data_obj.search(cursor, user, [
|
||||
('fs_id', '=', 'act_work_form2'),
|
||||
('module', '=', 'timesheet'),
|
||||
('inherit', '=', False),
|
||||
], limit=1, context=context)
|
||||
model_data = model_data_obj.browse(cursor, user, model_data_ids[0],
|
||||
context=context)
|
||||
@@ -218,6 +220,7 @@ class OpenWorkGraph(Wizard):
|
||||
model_data_ids = model_data_obj.search(cursor, user, [
|
||||
('fs_id', '=', 'act_work_form3'),
|
||||
('module', '=', 'timesheet'),
|
||||
('inherit', '=', False),
|
||||
], limit=1, context=context)
|
||||
model_data = model_data_obj.browse(cursor, user, model_data_ids[0],
|
||||
context=context)
|
||||
|
||||
Reference in new issue
Block a user