summaryrefslogtreecommitdiff
path: root/addons/purchase/data/mail_template_data.xml
AgeCommit message (Collapse)Author
2019-01-29[IMP] purchase: Email sent from PO sent by the current user.Arnaud Baes
When an email was sent from a PO, the sender was by default the user who created the PO. The sender is now replaced by the current user. TaskID: 1934477 closes odoo/odoo#30660
2018-08-28[IMP] purchase: clean mail templateDarshil Trivedi
Usability change: - Remove amount from RFQ template - Remove origin from both templates - Modify last sentence to a proper English - Add partner reference in PO template Technically remove the conidtion on object state in order to guess if it's a RFQ or a PO since the check is already made in python and it exists a template for the RFQ and a template for PO. This commit is related to task ID 1835441
2018-07-24[IMP] purchase: make templates more modern and updated with Odoo guidelinesShubham Johar
In this commit we improve templates used in purchase. Purpose of this commit is to have templates that embed or use standard Odoo email layouts to make them look modern and have a common style across all emails. Main guidelines * better use of div / p / br to try to lessen layout issues, especially when updating templates using the editor; * correctly sequence the templates fields definition; * correctly set templates values notably auto_delete and user_signature fields to avoid confusion; * correctly layout the email content using light notification email. It can either propagate the layout choice through various send mail methods or directly embed the styling in the templates for more technical or complex templates; * use email_formatted computed field when possible to avoid having hand-made from / to addresses; * fix various typos and improve subjects when necessary; Content of emails is not necessarily updated as the purpose of this task is about styling, not content itself. This commit is linked to task ID 1843151 (and 1868112) and to PR #25346 (and #25889).
2018-07-19[REF] purchase: clean send by email templatesThibault 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-04-23[MERGE] forward port branch saas-14 up to dd18811e6c4Christophe Simonis
2018-04-23[FIX] purchase: use PO company for PO notificationNicolas Lempereur
In 41ffb503 the "Invoice Notification Email" and "Sale Order Notification Email" were modified so the company used was the one of the object if available or the sender otherwise. This had not been done for the "Purchase Order Notification Email" which was added in saas-14 which might be unexpected. Also as in 7a03f9ce9 specify the company when displaying the logo. opw-1838112 closes #24344
2018-04-23[FIX] account, purchase, sale: Wrong company displayed in the footerGoffin Simon
Steps to reproduce the bug: - Set a multi company environment with two company A and B - Set user admin in company A - Set user demo in company B - Create a PO with user demo - Send a RFQ Bug: The company of the admin user was displayed in the footer of the email. The function _notify called on res.parter model is called in sudo by the function _notify on mail.message model. The function render_template on mail.template model uses the user defined on self.env to render the template. So the user admin was always used. opw:1835647
2018-03-20[MERGE] forward port branch 11.0 up to 2835d299792Christophe Simonis
2018-03-19[MERGE] forward port branch saas-15 up to 0d552411852Christophe Simonis
2018-03-19[MERGE] forward port branch 10.0 up to caf6b4a7c79Christophe Simonis
2018-03-19[FIX] purchase: wrong condition in mail templatejem-odoo
Before checking the first element of 'partner_id.child_ids', rather check that the partner and not the object has children, to avoid crashes when the partner of the PO is a company. opw-1826359
2018-03-01[MERGE] forward port branch 11.0 up to c2e878e34c8Christophe 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
2016-12-22[IMP] purchase: RfQ email layout improvedFabien Pinckaers
2016-12-22[FIX] purchase: missing signature on RFQ's emailsFabien Pinckaers
2016-08-05[MIG] purchase: Migrate to new APIDenis Vermylen (dve)
2016-07-17[IMP] purchase: improved email templateFabien Pinckaers
2016-03-21[FIX] english typo: amounting 00 --> amounting in 00Fabien Pinckaers
2016-02-23[MIGR] base: migrate base/res to the new APIRavi Gohil
- `ir.property`, improve API of method `get_by_record` - `res.bank`, `res.partner.bank` - `res.company` - `res.config`, `res.config.installer`, `res.config.settings`, fix usage of methods `get_default_` - `res.country`, `res.country.group`, `res.country.state` - `res.currency`, `res.currency.rate` - `res.font` - `res.lang` - `res.partner`, `res.partner.category`, `res.partner.title` - `res.request.link` - `res.groups`, `res.users`, `res.users.log`, change password wizard
2016-01-25[MERGE] forward port of branch 9.0 up to 6872aaeJulien Legros
2016-01-20[IMP] *: unnecessary safe filter for subject templateNicolas Lempereur
With 6dde919 email subject field are not autoescaped by default, thus using safe is not necessary. closes #10547
2015-12-10[FIX] fix various Lucida misspellingsDaniel Dico
closes #9997
2015-12-09[MERGE] forward port of branch 9.0 up to da2b88bChristophe Simonis
2015-12-09[FIX] sale and others: email_from of templatesThibault Delavallée
2015-11-02[IMP] invoice, sale, purchase: template updateThibault Delavallée
Templates used to send invoice / quotation / PO by email are cleaned. Custom style is removed. Content is simplified. For sale, only one template is kept through the various addons. Previously to this commit there are 3 templates: standard, portal and online quote. Those template are similar except the link to get the sale order. Now the base template contains some logic that should be sufficient to cover all cases. This breaks the modular approach but is easier to use for users. As templates are still mako it is not possible to use inheritance. So having a base template knowing some bits of overriding modules is necessary if we want to avoid having the same template duplicated.
2015-09-30[FIX] account,sale,purchase: Take country format address in email templatesYannick Tivisse
In qweb reports, the address is displayed according the standards of the country where it belongs. In the email templates, the company address was always displayed in the same way, no matter the country of the address.
2015-09-08[IMP] sale, purchase: the return of mail.template (Sale order, and purchase RFQ)mdi-odoo
These templates were deleted with c04065abd8f62c9a211c8fa824f5eecf68e61b73 but there xml_id were still used in the code. Mail template are good for people, so we make them come back from the dead ...