diff --git a/cor_custom/__manifest__.py b/cor_custom/__manifest__.py index 775b7ca..8f05dd5 100755 --- a/cor_custom/__manifest__.py +++ b/cor_custom/__manifest__.py @@ -31,6 +31,7 @@ 'views/project_view.xml', #'views/project_hours_view.xml', 'views/hr_employee_views.xml', + 'views/res_users.xml', 'views/hr_timesheet_templates.xml', 'views/analytic_view.xml', 'views/hide_menus.xml', diff --git a/cor_custom/models/__init__.py b/cor_custom/models/__init__.py index 728b454..6b52d03 100755 --- a/cor_custom/models/__init__.py +++ b/cor_custom/models/__init__.py @@ -8,4 +8,5 @@ from . import project_overview from . import analytic from . import product from . import hr_employee -from . import sale \ No newline at end of file +from . import sale +from . import res_users \ No newline at end of file diff --git a/cor_custom/models/res_users.py b/cor_custom/models/res_users.py new file mode 100755 index 0000000..3a34608 --- /dev/null +++ b/cor_custom/models/res_users.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- + +from odoo import api, exceptions, fields, models, tools, _ + + +class CorResUsers(models.Model): + _inherit = "res.users" + _description = "Custom Res Users" + + timesheet_create = fields.Boolean() diff --git a/cor_custom/views/res_users.xml b/cor_custom/views/res_users.xml new file mode 100755 index 0000000..1517ac9 --- /dev/null +++ b/cor_custom/views/res_users.xml @@ -0,0 +1,15 @@ + + + + + + res.users + + + + + + + + + \ No newline at end of file