In v12, the hr module did not have a hard dependency on mail_bot, so the users could uninstall it if they did not want/need its functionality. In v13, mail_bot was added as a dependency to include the notification widget and the odoobot state in the user forms modified by the hr module. However, this also brings potentially unwanted functionality to anyone who installs an hr related application. This commit removes the dependency on mail_bot by adding the mail_bot_hr bridge module, which provides integration between mail_bot and hr if both modules are installed.
29 lines
1.2 KiB
XML
29 lines
1.2 KiB
XML
<?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="mode">primary</field>
|
|
<field name="arch" type="xml">
|
|
<widget name="notification_alert" position="replace" />
|
|
</field>
|
|
</record>
|
|
|
|
<record id="res_users_view_form_profile" model="ir.ui.view">
|
|
<field name="name">res.users.preferences.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">
|
|
<xpath expr="//field[@name='odoobot_state']" position="attributes">
|
|
<attribute name="attrs">{'readonly': [('can_edit', '=', False)]}</attribute>
|
|
</xpath>
|
|
<sheet position="before">
|
|
<widget name="notification_alert" class="mb-0" />
|
|
</sheet>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</odoo>
|