Task 2038326 * Tick the credit note sequence by default on the customer invoices and vendor bills journals * Write Customer Invoice/Vendor Bill/Credit Note/Customer refund at the top of the document * The reference field should be printed on the credit note pdf (interesting because it gives source and reason) * If the document is a credit note, there shouldn't be any payment information on the pdf (the customer doesn't have to pay you) (currently you see the "payment communication" the customer is supposed to use) * Rename Credit Note to Refund on dashboard * Add tooltip on payment widget closes odoo/odoo#35231 Signed-off-by: Cedric Snauwaert (csn) <csn@openerp.com>
53 lines
2.1 KiB
XML
53 lines
2.1 KiB
XML
<?xml version="1.0" ?>
|
|
<odoo>
|
|
|
|
<!-- Mail template are declared in a NOUPDATE block
|
|
so users can freely customize/delete them -->
|
|
<data noupdate="1">
|
|
<!--Email template -->
|
|
<record id="email_template_edi_invoice" model="mail.template">
|
|
<field name="name">Invoice: Send by email</field>
|
|
<field name="model_id" ref="account.model_account_move"/>
|
|
<field name="email_from">${(object.invoice_user_id.email_formatted or user.email_formatted) |safe}</field>
|
|
<field name="partner_to">${object.partner_id.id}</field>
|
|
<field name="subject">${object.company_id.name} Invoice (Ref ${object.name or 'n/a'})</field>
|
|
<field name="body_html" type="html">
|
|
<div style="margin: 0px; padding: 0px;">
|
|
<p style="margin: 0px; padding: 0px; font-size: 13px;">
|
|
Dear
|
|
% if object.partner_id.parent_id:
|
|
${object.partner_id.name} (${object.partner_id.parent_id.name}),
|
|
% else:
|
|
${object.partner_id.name},
|
|
% endif
|
|
<br /><br />
|
|
Here is your
|
|
% if object.name:
|
|
invoice <strong>${object.name}</strong>
|
|
% else:
|
|
invoice
|
|
%endif
|
|
% if object.invoice_origin:
|
|
(with reference: ${object.invoice_origin})
|
|
% endif
|
|
amounting in <strong>${format_amount(object.amount_total, object.currency_id)}</strong>
|
|
from ${object.company_id.name}.
|
|
% if object.invoice_payment_state == 'paid':
|
|
This invoice is already paid.
|
|
% else:
|
|
Please remit payment at your earliest convenience.
|
|
% endif
|
|
<br /><br />
|
|
Do not hesitate to contact us if you have any questions.
|
|
</p>
|
|
</div>
|
|
</field>
|
|
<field name="report_template" ref="account_invoices"/>
|
|
<field name="report_name">Invoice_${(object.name or '').replace('/','_')}${object.state == 'draft' and '_draft' or ''}</field>
|
|
<field name="lang">${object.partner_id.lang}</field>
|
|
<field name="user_signature" eval="False"/>
|
|
<field name="auto_delete" eval="True"/>
|
|
</record>
|
|
</data>
|
|
</odoo>
|