Files
odoo_source/addons/snailmail/wizard/snailmail_confirm_views.xml
T
Kevin Baptiste b83e783700 [IMP] snailmail: confirm sending first letter
Show a confirmation dialog when a user is sending the very first letter.

=========
 Purpose
=========

It happens from time to time that a letter gets sent by accident to a
final customer. This situation is always a bit problematic and is
usually only uncovered when it is too late.  Having an additional
warning when sending the very first letter should help avoid that kind
of issue.

================
 Specifications
================

Display the following warning when the user tries to send a snailmail
letter for the first time (from an invoice or from a follow-up report):
'You are about to send this invoice/follow-up report by post. Are you
sure you want to continue?' Confirm/Cancel

closes odoo/odoo#47861

Taskid: 2215091
Related: odoo/enterprise#9326
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-04-16 09:36:04 +00:00

17 lines
781 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="snailmail_confirm_view" model="ir.ui.view">
<field name="name">snailmail.confirm.view</field>
<field name="model">snailmail.confirm</field>
<field name="arch" type="xml">
<form string="Snailmail Confirmation">
<p>You are about to send this <field name="model_name" readonly="1" class="oe_inline" /> by post. Are you sure you want to continue?</p>
<footer>
<button string="Confirm" name="action_confirm" type="object" class="btn-primary" />
<button string="Cancel" name="action_cancel" type="object" class="btn-secondary" />
</footer>
</form>
</field>
</record>
</odoo>