1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/mail_group/wizard/mail_group_message_reject_views.xml
2024-12-10 09:04:09 +07:00

43 lines
2.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="mail_group_message_reject_form" model="ir.ui.view">
<field name="name">mail.group.message.reject.form</field>
<field name="model">mail.group.message.reject</field>
<field name="arch" type="xml">
<form string="Reject">
<div class="alert alert-warning" role="alert" invisible="action != 'reject'">
Reject the message<span invisible="not send_email"> and send an email to the author (<field name="email_from_normalized"/>)</span>.
</div>
<div class="alert alert-warning" role="alert" invisible="action != 'ban'">
Ban the author of the message (<field name="email_from_normalized"/>) <span invisible="not send_email">and send them an email</span>.
</div>
<group>
<field name="send_email" invisible="1"/>
<field name="mail_group_message_id" invisible="1"/>
<field name="subject"/>
<field name="body"/>
<field name="action" invisible="1"/>
</group>
<footer>
<button string="Reject Silently" name="action_send_mail" type="object" class="btn-primary"
invisible="action != 'reject' or send_email"/>
<button string="Send &amp; Reject" name="action_send_mail" type="object" class="btn-primary"
invisible="action != 'reject' or not send_email"/>
<button string="Ban" name="action_send_mail" type="object" class="btn-primary"
invisible="action != 'ban' or send_email"/>
<button string="Send &amp; Ban" name="action_send_mail" type="object" class="btn-primary"
invisible="action != 'ban' or not send_email"/>
<button string="Discard" class="btn-secondary" special="cancel"/>
</footer>
</form>
</field>
</record>
<record id="mail_group_message_reject_action" model="ir.actions.act_window">
<field name="name">Message Rejection Explanation</field>
<field name="res_model">mail.group.message.reject</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
</odoo>