[FIX] mass_mailing: alert height and position
Prior to this commit, alert was in the status bar. To maintain consistency and avoid alert being in a dropdown in mobile, alert should be below the status bar. There was also a height issue that created a too high alert in `mass_mailing_sms`. This commit fixes these issues. task-3468540 Part of task-3326263 closes odoo/odoo#132753 X-original-commit: da9d1c5e146fe0370204d3330cf3d876a98f5753 Signed-off-by: Pierre Paridans (app) <app@odoo.com>
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
|
||||
<field name="state" readonly="1" widget="statusbar"/>
|
||||
</header>
|
||||
<div class="alert alert-info d-flex align-items-center h-100 my-0 py-0" role="alert"
|
||||
<div class="alert alert-info" role="alert"
|
||||
invisible="state not in ['in_queue', 'done'] and sent == 0 and canceled == 0 and scheduled == 0 and failed == 0 and not warning_message">
|
||||
<div class="o_mails_canceled" invisible="canceled == 0">
|
||||
<button class="btn btn-link py-0"
|
||||
@@ -387,9 +387,6 @@
|
||||
<attribute name="js_class">mailing_mailing_view_form_full_width</attribute>
|
||||
<attribute name="class">o_form_view o_mass_mailing_mailing_form o_mass_mailing_form_full_width</attribute>
|
||||
</xpath>
|
||||
<field name="state" position="before">
|
||||
<xpath expr="//div[hasclass('alert-info')]" position="move"/>
|
||||
</field>
|
||||
<xpath expr="//div[hasclass('alert-info')]" position="attributes">
|
||||
<attribute name="invisible">state == 'draft' or state != 'in_queue' and failed == 0</attribute>
|
||||
</xpath>
|
||||
|
||||
Reference in New Issue
Block a user