[IMP] mass_mailing: make name required on saved records
Name field on mailing is a technical field coming from its underlying utm source record, coming from an _inherits. It is not required in view as it is computed at creation based on subject. Changing it is possible in debug mode. However it is possible to try to write a void value, which leads to an issue as it is technically required. With this commit we make the name field required at write. closes odoo/odoo#42368 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
committed by
Thibault Delavallée
parent
611b4ed95a
commit
126a2e08ec
@@ -195,7 +195,8 @@
|
||||
<page string="Settings" name="settings">
|
||||
<group>
|
||||
<group>
|
||||
<field name="name" required="False" groups="base.group_no_one" string="Name"/>
|
||||
<field name="id" invisible="1"/>
|
||||
<field name="name" attrs="{'required': [('id', '!=', False)]}" groups="base.group_no_one" string="Name"/>
|
||||
<field name="user_id"/>
|
||||
<field name="email_from" attrs="{'readonly': [('state', 'in', ('sending', 'done'))]}"/>
|
||||
<label for="reply_to"/>
|
||||
|
||||
Reference in New Issue
Block a user