* = sale, purchase
PURPOSE
Purpose of this commit is to improve the 'Pay Now' notification template
used notably when using the "Send by email" button on
* invoices
* sale orders
* RFQ and purchase orders
SPECIFICATIONS
Global specifications
* remove gray background that is around the white content (aka have an
email with an uniform white background);
* move button on top of email like other notification templates (top-left
and company logo is top-right);
* fix various small wording issues;
* fix signature usage;
Technical specifications
Remove custom definition of access links and labels in 'Pay Now' notification
template (``mail_notification_paynow``). It is now done at model level through
the ``_notify_get_groups`` that is generic to notification emails. This allows
to remove QWeb override in purchase and sale notably. Displaying access links
is now controller by the ``has_button_access`` value. Model computes links,
access and labels while view only displays what is requested. That way any
template can use those values instead of being defined in a template subject
to user changes.
Sale / Purchase
Overrides of those modules is not necessary anymore since button labelling
and URLs are managed at model level.
Purchase "specific" buttons for Accept / Update dates are now email layout
actions, like used in other modules like HR or Project.
Continuation of odoo/odoo#76418 .
Task-2712450 (Mail/Sale: Improve 'Pay Now' notification template)
Part-of: odoo/odoo#82167
29 lines
1.1 KiB
XML
29 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo><data noupdate="1">
|
|
|
|
<template id="track_po_line_template">
|
|
<div>
|
|
<strong>The ordered quantity has been updated.</strong>
|
|
<ul>
|
|
<li><t t-esc="line.product_id.display_name"/>:</li>
|
|
Ordered Quantity: <t t-esc="line.product_qty" /> -> <t t-esc="float(product_qty)"/><br/>
|
|
<t t-if='line.order_id.product_id.type in ("consu", "product")'>
|
|
Received Quantity: <t t-esc="line.qty_received" /><br/>
|
|
</t>
|
|
Billed Quantity: <t t-esc="line.qty_invoiced"/>
|
|
</ul>
|
|
</div>
|
|
</template>
|
|
|
|
<template id="track_po_line_qty_received_template">
|
|
<div>
|
|
<strong>The received quantity has been updated.</strong>
|
|
<ul>
|
|
<li><t t-esc="line.product_id.display_name"/>:</li>
|
|
Received Quantity: <t t-esc="line.qty_received" /> -> <t t-esc="float(qty_received)"/><br/>
|
|
</ul>
|
|
</div>
|
|
</template>
|
|
|
|
</data></odoo>
|