diff --git a/addons/hr_timesheet_sheet/__init__.py b/addons/hr_timesheet_sheet/__init__.py index 04e48fb089b..1427413313b 100644 --- a/addons/hr_timesheet_sheet/__init__.py +++ b/addons/hr_timesheet_sheet/__init__.py @@ -3,4 +3,5 @@ import hr_timesheet_sheet import hr_department +import hr_timesheet_sheet_config_settings import wizard diff --git a/addons/hr_timesheet_sheet/__openerp__.py b/addons/hr_timesheet_sheet/__openerp__.py index b8db18925cb..4993c312aa3 100644 --- a/addons/hr_timesheet_sheet/__openerp__.py +++ b/addons/hr_timesheet_sheet/__openerp__.py @@ -34,6 +34,7 @@ The validation can be configured in the company: 'hr_timesheet_sheet_data.xml', 'views/hr_timesheet_sheet.xml', 'hr_timesheet_sheet_view.xml', + 'hr_timesheet_sheet_config_settings_views.xml', 'hr_dashboard.xml', ], 'test':['../account/test/account_minimal_test.xml', 'test/test_hr_timesheet_sheet.yml'], diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet_config_settings.py b/addons/hr_timesheet_sheet/hr_timesheet_sheet_config_settings.py new file mode 100644 index 00000000000..355b49a1180 --- /dev/null +++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet_config_settings.py @@ -0,0 +1,9 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import fields, models + +class HrTimesheetConfiguration(models.TransientModel): + _inherit = 'project.config.settings' + + module_project_timesheet_synchro = fields.Boolean(string="Timesheet app for Chrome/Android/iOS") diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet_config_settings_views.xml b/addons/hr_timesheet_sheet/hr_timesheet_sheet_config_settings_views.xml new file mode 100644 index 00000000000..695ea0ae152 --- /dev/null +++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet_config_settings_views.xml @@ -0,0 +1,23 @@ + + + + + project.config.settings.form.inherit.timesheet.sheet + project.config.settings + + + + Timesheets + + + + + + + diff --git a/addons/project/project_view.xml b/addons/project/project_view.xml index 53f07224549..7f3386917de 100644 --- a/addons/project/project_view.xml +++ b/addons/project/project_view.xml @@ -118,9 +118,6 @@ groups="base.group_no_one"/> - - - diff --git a/addons/project/res_config.py b/addons/project/res_config.py index a3087dfe0ca..bf084efb584 100644 --- a/addons/project/res_config.py +++ b/addons/project/res_config.py @@ -10,14 +10,6 @@ class project_configuration(osv.osv_memory): _inherit = 'res.config.settings' _columns = { - 'module_sale_service': fields.selection([ - (0, "No automatic task creation"), - (1, 'Generate tasks from sale orders') - ], "Sale Service", - help='This feature automatically creates project tasks from service products in sale orders. ' - 'In order to make it work, the product has to be a service and \'Create Task Automatically\' ' - 'has to be flagged on the procurement tab in the product form.\n' - '-This installs the module sale_service.'), 'module_pad': fields.selection([ (0, "Task description is a plain text"), (1, "Collaborative rich text on task description") @@ -30,24 +22,11 @@ class project_configuration(osv.osv_memory): (1, 'Allow activating customer rating on projects, at issue completion') ], "Rating", help="This allows customers to give rating on provided services"), - 'module_project_issue_sheet': fields.selection([ - (0, "Do not track working hours on issues"), - (1, "Activate timesheets on issues") - ], "Timesheets Invoicing", - help='Provides timesheet support for the issues/bugs management in project.\n' - '-This installs the module project_issue_sheet.'), - 'group_time_work_estimation_tasks': fields.selection([ - (0, "Do not estimate working time on tasks"), - (1, "Manage time estimation on tasks") - ], "Time on Tasks", - implied_group='project.group_time_work_estimation_tasks', - help="Allows you to compute Time Estimation on tasks."), 'generate_project_alias': fields.selection([ (0, "Do not create an email alias automatically"), (1, "Automatically generate an email alias at the project creation") ], "Project Alias", help="Odoo will generate an email alias at the project creation from project name."), - 'module_project_timesheet_synchro': fields.boolean("Timesheet app for Chrome/Android/iOS"), 'module_project_forecast': fields.boolean("Forecasts, planning and Gantt charts"), } diff --git a/addons/project/res_config_view.xml b/addons/project/res_config_view.xml index 6030cab65e2..5474a47f8bc 100644 --- a/addons/project/res_config_view.xml +++ b/addons/project/res_config_view.xml @@ -12,9 +12,7 @@