From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- addons/mail_bot_hr/__init__.py | 0 addons/mail_bot_hr/__manifest__.py | 17 +++++++++++++++++ addons/mail_bot_hr/views/res_users_views.xml | 28 ++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 addons/mail_bot_hr/__init__.py create mode 100644 addons/mail_bot_hr/__manifest__.py create mode 100644 addons/mail_bot_hr/views/res_users_views.xml (limited to 'addons/mail_bot_hr') diff --git a/addons/mail_bot_hr/__init__.py b/addons/mail_bot_hr/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/addons/mail_bot_hr/__manifest__.py b/addons/mail_bot_hr/__manifest__.py new file mode 100644 index 00000000..10bdad66 --- /dev/null +++ b/addons/mail_bot_hr/__manifest__.py @@ -0,0 +1,17 @@ +# -*- coding: utf-8 -*- +{ + 'name': "mail_bot_hr", + 'summary': """Bridge module between hr and mailbot.""", + 'description': """This module adds the OdooBot state and notifications in the user form modified by hr.""", + 'website': "https://www.odoo.com/page/discuss", + 'category': 'Productivity/Discuss', + 'version': '1.0', + 'depends': ['mail_bot', 'hr'], + 'application': False, + 'installable': True, + 'auto_install': True, + 'data': [ + 'views/res_users_views.xml', + ], + 'license': 'LGPL-3', +} diff --git a/addons/mail_bot_hr/views/res_users_views.xml b/addons/mail_bot_hr/views/res_users_views.xml new file mode 100644 index 00000000..2a981524 --- /dev/null +++ b/addons/mail_bot_hr/views/res_users_views.xml @@ -0,0 +1,28 @@ + + + + + res.users.preferences.form.simplified.inherit + res.users + + 15 + + + + + + + res.users.preferences.form.inherit + res.users + + + + {'readonly': [('can_edit', '=', False)]} + + + + + + + + -- cgit v1.2.3