summaryrefslogtreecommitdiff
path: root/addons/account/data/mail_template_data.xml
AgeCommit message (Collapse)Author
2018-08-10[IMP] sale_payment,website_sale: send email when automatic invoice activatedNikunj Ladava
Currently when in payment is configure in automatic invoice mode, customers don't receive anything. If they want to see their invoice, they have to log into their portal account. Task #1866497 Closes #25864
2018-07-19[REF] account: clean send by email templateThibault Delavallée
Purpose * use the new notification template allowing to display the payment button only in emails; * reorder the fields definition to ease the reading; * slightly clean the email body using a maximum of div and br tags as it seems better integrated with Odoo edition capabilities; This commit is linked to task ID 1860049 and PR #25824.
2018-06-05[MERGE] forward port branch 11.0 up to 1b272a20504Christophe Simonis
2018-06-01[FIX] account, purchase, sale: properly quote the name of the email senderlen-odoo
formataddr (from the email python library) writes email_from as '"name" <email>' in the email_from field of the mail.compose.message record. When the mail is rendered, onchange_template_id is triggered. This then overwrites the values of email_from among other fields. What happens is that it uses the email_from field from the template to render the email_from, bypassing what was put by formataddr before. What happens in some cases is that it is rendered as 'name <email>' (note the quotes have been stripped away). If name contains arbitrary symbols, e.g. name = 'pépé [company] <pdg>, ohlala', then getaddresses which is supposed to parse the (name, email) pairs gets thrown off (in particular, <pdg> will be interpreted as an email address, and many other problems with the various special symbols). It then gives these wrong elements as email addresses, which will usually crash when getting non-ascii symbols (i.e. these strings don't respect the relevant RFC for email addresses). Closes: https://github.com/odoo/odoo/issues/23502 https://github.com/odoo/odoo/pull/2311823118 opw 815202 opw 1824243
2018-04-23[MERGE] forward port branch saas-15 up to cae950e8262Christophe Simonis
2018-02-28[FIX] *: correcly format amounts in mail templatesChristophe Simonis
2018-01-29[REF] various: use secondary notification templateThibault Delavallée
All those templates are basically the same except some bug fixes that were not propagated about company. Let us use just the one we just defined in the mail module.
2018-01-29[REF] mail: move email notification templates to QWebThibault Delavallée
In this commit we change notification templates used to render notification emails from jinja-based mail.template to pure QWeb templates. There are several reasons to do so * those are not real mail.template records. Indeed they cannot be used outside of the notification process as some values are computed and not available on the mail.message record used to render the template; * we do not really need other fields than body. Indeed fields like subject, email_from or email_to are computed from the notification process; * we do not want people to update the mail.template without knowing the consequences, especially for fields like recipients that may broke the mail gateway; * using the html editor easily break the mail.template as it is very custom and very to break without really realizing it. It also simplifies template management as it lessens number of mail template people have in their list view of mail.template. It avoids mixing technical and functional templates. We move to QWeb templates as those are not too hard to customize and allow to perform body rendering which is what we really need when notifying people of a new message. This commit does not change the functional purpose and layout of the templates. Behavior should be the same before and after this commit.
2018-01-25[FIX] account, l10n_be_invoice_bba, purchase, repair, sale: format_amountNicolas Martinelli
Use `format_amount` in the mail templates in order to format as a regular amount (with rounding and symbol). opw-805370
2017-10-20[MERGE] forward port branch saas-16 up to dc2a6c6cd2aChristophe Simonis
2017-09-29[FIX] account: email template name changed (again)qdp-odoo
As per discussion on commit https://github.com/odoo/odoo/commit/48a8d68194c4802320984cbd487ccd650e1bb096#diff-356151c8ac0f23574964c7c9da863c70, I add the App name in the template name.
2017-09-29[FIX] account: email template name changePrakash Prajapati
2017-08-25[IMP] account: add invoice page view on customer portalThibault Delavallée
This commit adds a page view for invoices on the customer portal. Layout is based on the invoice report to closely match what is already done in Odoo. It replaces the old controller that returned only the pdf. Customers should now be able to receive both. Future commits will improve invoice page view notably in account_payment while adding payment options in account customer portal.
2017-08-25[CLN] account: perform some guidelining and cleaningThibault Delavallée
* rename some files according to guidelines; * clean template name to clean their ordering and ease template browsing; * use html type for mail templates body instead of cdata; * clean html for mail templates introduced at 96da10de6cc20486b3e37fd4c6c88eb61cbb919c; No horse has been harmed and no functional change performed.