Начальное наполнение

This commit is contained in:
parent 000b34b6e0
commit bb58716ea7
4 changed files with 72 additions and 0 deletions

0
__init__.py Normal file
View File

16
__manifest__.py Normal file
View File

@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
{
'name': "OdooBot - 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/app/discuss",
'category': 'Productivity/Discuss',
'version': '1.0',
'depends': ['mail_bot', 'hr'],
'installable': True,
'auto_install': True,
'data': [
'views/res_users_views.xml',
],
'license': 'LGPL-3',
}

15
i18n/mail_bot_hr.pot Normal file
View File

@ -0,0 +1,15 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 21:55+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

41
views/res_users_views.xml Normal file
View File

@ -0,0 +1,41 @@
<?xml version="1.0" ?>
<odoo>
<data>
<record id="res_users_view_form_simple_modif" model="ir.ui.view">
<field name="name">res.users.preferences.form.simplified.inherit</field>
<field name="model">res.users</field>
<field name="inherit_id" ref="hr.res_users_view_form_simple_modif" />
<field name="priority">15</field>
<field name="arch" type="xml">
<widget name="notification_alert" position="replace" />
</field>
</record>
<record id="res_users_view_form_preferences" model="ir.ui.view">
<field name="name">res.users.preferences.form.inherit</field>
<field name="model">res.users</field>
<field name="inherit_id"
ref="mail_bot.res_users_view_form_preferences" />
<field name="arch" type="xml">
<field name="odoobot_state" position="before">
<field name="can_edit" invisible="1"/>
</field>
<xpath expr="//field[@name='odoobot_state']" position="attributes">
<attribute name="readonly">not can_edit</attribute>
</xpath>
</field>
</record>
<record id="res_users_view_form_profile" model="ir.ui.view">
<field name="name">res.users.profile.form.inherit</field>
<field name="model">res.users</field>
<field name="inherit_id"
ref="hr.res_users_view_form_profile" />
<field name="arch" type="xml">
<sheet position="before">
<widget name="notification_alert" class="mb-0" />
</sheet>
</field>
</record>
</data>
</odoo>