[IMP] mass_mailing_{sms}: add group name to manage xpath
We have added the name of the group to Email Content to minimize the indexing on xpath. Task-2710557 closes odoo/odoo#86555 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
@@ -318,7 +318,7 @@
|
||||
</page>
|
||||
<page string="Settings" name="settings">
|
||||
<group>
|
||||
<group string="Email Content" attrs="{'invisible': [('mailing_type', '!=', 'mail')]}">
|
||||
<group string="Email Content" name="email_content" attrs="{'invisible': [('mailing_type', '!=', 'mail')]}">
|
||||
<field class="o_text_overflow" name="preview" string="Preview Text" attrs="{'readonly': [('state', 'in', ('sending', 'done'))]}" widget="char_emojis" placeholder="e.g. Check it out before it's too late!"/>
|
||||
<field name="email_from" attrs="{'readonly': [('state', 'in', ('sending', 'done'))]}"/>
|
||||
<label for="reply_to"/>
|
||||
|
||||
@@ -123,7 +123,7 @@
|
||||
options='{"enable_emojis": True}'/>
|
||||
</page>
|
||||
</xpath>
|
||||
<xpath expr="//page[@name='settings']/group/group[1]" position="after">
|
||||
<xpath expr="//page[@name='settings']/group/group[@name='email_content']" position="after">
|
||||
<group string="Options" attrs="{'invisible': [('mailing_type', '!=', 'sms')]}">
|
||||
<field name="sms_allow_unsubscribe" attrs="{'invisible': [('mailing_type', '!=', 'sms')], 'readonly': [('state', 'in', ('sending', 'done'))]}"/>
|
||||
</group>
|
||||
|
||||
Reference in New Issue
Block a user