From 1b82b3acb1f4ceea730ca7034f4b43ea32aefda8 Mon Sep 17 00:00:00 2001 From: dut-odoo Date: Fri, 18 Nov 2016 11:33:25 +0530 Subject: [PATCH] [IMP] hr_timesheet: Improve the settings form view --- addons/hr_timesheet/__init__.py | 1 + addons/hr_timesheet/__manifest__.py | 1 + .../hr_timesheet_config_settings.py | 16 +++ .../hr_timesheet_config_settings_views.xml | 125 ++++++++++++++++++ 4 files changed, 143 insertions(+) create mode 100644 addons/hr_timesheet/hr_timesheet_config_settings.py create mode 100644 addons/hr_timesheet/hr_timesheet_config_settings_views.xml diff --git a/addons/hr_timesheet/__init__.py b/addons/hr_timesheet/__init__.py index ef86c22b5c9..8047c518087 100644 --- a/addons/hr_timesheet/__init__.py +++ b/addons/hr_timesheet/__init__.py @@ -2,5 +2,6 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. import hr_timesheet +import hr_timesheet_config_settings import project_timesheet import report diff --git a/addons/hr_timesheet/__manifest__.py b/addons/hr_timesheet/__manifest__.py index b486c0e5b9e..efedc7384f0 100644 --- a/addons/hr_timesheet/__manifest__.py +++ b/addons/hr_timesheet/__manifest__.py @@ -25,6 +25,7 @@ up a management by affair. 'security/hr_timesheet_security.xml', 'security/ir.model.access.csv', 'hr_timesheet_view.xml', + 'hr_timesheet_config_settings_views.xml', 'project_timesheet_view.xml', 'report/hr_timesheet_report_view.xml', 'report/report_timesheet_templates.xml', diff --git a/addons/hr_timesheet/hr_timesheet_config_settings.py b/addons/hr_timesheet/hr_timesheet_config_settings.py new file mode 100644 index 00000000000..db75fa4fb3a --- /dev/null +++ b/addons/hr_timesheet/hr_timesheet_config_settings.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import fields, models + + +class HrTimesheetConfiguration(models.TransientModel): + _name = 'hr.timesheet.config.settings' + _inherit = 'base.config.settings' + + module_project_timesheet_synchro = fields.Boolean("Awesome Timesheet") + module_sale_timesheet = fields.Boolean("Time Billing") + module_project_forecast = fields.Boolean(string="Forecasts") + module_hr_expense = fields.Boolean("Expenses") + module_hr_holidays = fields.Boolean("Leave Management") + module_hr_timesheet_attendance = fields.Boolean("Attendances") diff --git a/addons/hr_timesheet/hr_timesheet_config_settings_views.xml b/addons/hr_timesheet/hr_timesheet_config_settings_views.xml new file mode 100644 index 00000000000..5024f6f0aef --- /dev/null +++ b/addons/hr_timesheet/hr_timesheet_config_settings_views.xml @@ -0,0 +1,125 @@ + + + + + + hr.timesheet.config.settings.view.form + hr.timesheet.config.settings + +
+
+
+ +

Timesheet Apps

+
+
+
+ +
+
+
+
+
+

Billing

+
+
+
+ +
+
+
+
+
+

Recommended Apps

+
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+ + + Settings + hr.timesheet.config.settings + form + form + inline + + + +