Files
odoo_source/addons/hr/views/mail_channel_views.xml
T
Zelong Lin 74696cab83 [IMP] mail, hr: constraints when channel_type is not 'channel'
The group_public_id and group_id and subscription_department_ids
should only be used when the channel_type is 'channel'.

task-2766712

closes odoo/odoo#84813

Related: odoo/upgrade#3266
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-03-29 11:59:45 +02:00

15 lines
679 B
XML

<?xml version="1.0" ?>
<odoo><data>
<record id="mail_channel_view_form_" model="ir.ui.view">
<field name="name">mail.channel.view.form.inherit.hr</field>
<field name="model">mail.channel</field>
<field name="inherit_id" ref="mail.mail_channel_view_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='group_ids']" position="after">
<field name="subscription_department_ids" widget="many2many_tags"
attrs="{'invisible': [('channel_type', '!=', 'channel')]}"
string="Auto Subscribe Departments"/>
</xpath>
</field>
</record>
</data></odoo>