From 36adfe1b5eda023eedea7d02d9d64e188905f734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 11 Feb 2016 22:26:00 +0100 Subject: [PATCH] Remove useless select=True on table_query Model issue5299 review18951002 --- line.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/line.py b/line.py index 3063c8e34b..9eeef7ef7c 100644 --- a/line.py +++ b/line.py @@ -189,7 +189,7 @@ class EnterLines(Wizard): class HoursEmployee(ModelSQL, ModelView): 'Hours per Employee' __name__ = 'timesheet.hours_employee' - employee = fields.Many2One('company.employee', 'Employee', select=True) + employee = fields.Many2One('company.employee', 'Employee') duration = fields.TimeDelta('Duration', 'company_work_time') @staticmethod @@ -245,11 +245,11 @@ class OpenHoursEmployee(Wizard): class HoursEmployeeWeekly(ModelSQL, ModelView): 'Hours per Employee per Week' __name__ = 'timesheet.hours_employee_weekly' - year = fields.Char('Year', select=True) - week_internal = fields.Char('Week', select=True) + year = fields.Char('Year') + week_internal = fields.Char('Week') week = fields.Function(fields.Char('Week'), 'get_week', searcher='search_week') - employee = fields.Many2One('company.employee', 'Employee', select=True) + employee = fields.Many2One('company.employee', 'Employee') duration = fields.TimeDelta('Duration', 'company_work_time') @classmethod @@ -299,11 +299,11 @@ class HoursEmployeeWeekly(ModelSQL, ModelView): class HoursEmployeeMonthly(ModelSQL, ModelView): 'Hours per Employee per Month' __name__ = 'timesheet.hours_employee_monthly' - year = fields.Char('Year', select=True) - month_internal = fields.Char('Month', select=True) + year = fields.Char('Year') + month_internal = fields.Char('Month') month = fields.Function(fields.Char('Month'), 'get_month', searcher='search_month') - employee = fields.Many2One('company.employee', 'Employee', select=True) + employee = fields.Many2One('company.employee', 'Employee') duration = fields.TimeDelta('Duration', 'company_work_time') @classmethod