summaryrefslogtreecommitdiff
path: root/addons/account/data/mail_template_data.xml
AgeCommit message (Collapse)Author
2020-10-28[FIX] account,*: Manage 'in_payment' state correctlyLaurent Smet
closes odoo/odoo#60910 Related: odoo/enterprise#14449 Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-07-22[FIX] l10n_se_ocr, account : renamed old reference to invoice_payment_ref to ↵Benjamin Frantzen (bfr)
payment_reference closes odoo/odoo#54735 X-original-commit: a44db615d1fa6443810e88cc55471aff110c1393 Signed-off-by: bfr-o <bfr-o@users.noreply.github.com> Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-06-08[IMP] account: put payment reference in invoice mailJosse Colpaert
Before, only when you had installed the Belgian structured communication module, when you sent an invoice by mail then only the structured communication would be added in the mail. But it should be visible all the time when you have a payment reference. closes odoo/odoo#52618 Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-02-11[REF] mail, various: remove user_signature field from mail.templatemcm-odoo
RATIONALE Mail template model holds a field telling odoo mail engine to automatically add the current user's signature to the body. Its use depends on the use case * using the template in the composer on a single record: it is displayed in the rendered template in the composer, meaning people could change it. This behavior is interesting as it allows to see the email content; * using the template in the composer in mass mail mode: it is not displayed as only the raw jinja is displayed. It is therefore not obvious that it will be appended to the body of the mail. People could add it manually and have 2 signatures as a result; A mechanism automatically adding a signature to sent emails when posting a message is already implemented and is based on template existence. If a template has been used when posting, no signature is added in sent emails. Otherwise it is automatically added. This behavior should not change. Behavior will therefore be * use a template -> specify signature usage in it manually through jinja; * do not use a template -> signature added in sent emails; SPECIFICATIONS Remove user_signature. Update template body accordingly. In customer oriented templates that are using it and do not already contain it, manually add a call to user.signature within the jinja code. When set to False, just remove its declaration. Quickly clean some signature integration. LINKS Task ID 2089252 Community PR odoo/odoo#39482 Enterprise PR odoo/enterprise#6459 Upgrade PR odoo/upgrate#761 Related: odoo/enterprise#6459 Related: odoo/upgrade#761 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com> Co-authored-by: Michaël Mattiello <mcm@odoo.com> Co-authored-by: Thibault Delavallée <tde@odoo.com>
2020-01-16[IMP] account: add 'partial' and 'reversed' payment states to invoicesoco-odoo
- 'partial' payment state corresponds to invoices whose payable/receivable move line has been partially reconciled with some other line. - 'reversed' payment state corresponds to entries that have been cancelled by the creation of a single reverse entry (using the dedicated button on the form view). This state can be set on invoice as well as on regular entries. => To stay consistent with the naming conventions, this commit also renames invoice_payment_state field to payment_state, since it's no longer only applicable on invoices. closes odoo/odoo#41723 Related: odoo/enterprise#7202 Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-07-31[IMP] account: credit note usabilitywan
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>
2019-07-01[MERGE] manual forward port of accounting-pocalypse ↵Laurent Smet
(beaa30a3d1843de43a45f419bfbc1bfa7613a920) This commit merges the following models * account.invoice and account.move * account.invoice.line and account.move.line * account.voucher and account.move * account.voucher.line and account.move.line It was the opportunity for a big cleanup of the code, so it also restructures the whole account module, its different models/fields, the tests etc. for a better world and a better code readability. ==== Rationale ==== The rationale of this huge change is that we want journal entries / invoices to be easily edited, and changes reflected in the other model. It's a HUGE feature and very strategic for the fiduciary companies. For example, changing the account of a journal entry needs to be automatically reflected on the related invoice. The same reasoning applies to sale/purchase vouchers. ==== Changes made in features ===== When creating an invoice, you are now creating a journal entry directly. --> The object account.invoice no longer exists. In the same fashion when creating an invoice line, you're now adding journal items directly in the journal entry representing the invoice. If this invoice line has some tax, it may create additional journal items as well. --> The models account.invoice.line & account.invoice.tax no longer exist Identically, when creating a sale/purchase receipt with its lines, you are now creating a journal entry directly and there's no more usability difference between encoding a receipt or an invoice. --> The object account.voucher no longer exists. --> The object account.voucher.line no longer exists. --> The whole account_voucher module no longer exists. Positive side-effects coming from these changes are * draft invoices/bills/sale or purchase receipts now create a draft accounting entry. Validate these objects now simply post its journal entry. That means that draft invoices/bills/sale or purchase receipt can straightforwardly be included in reporting or budgets. * opening a journal entry in form view will now always open the correct view: if it's a sale/purchase journal entry we will have a customer invoice/vendor bill view or a sale/purchase receipt view, whatever the menu we're coming from. * code & business logic simplification. It is also condensed in a single place instead of being partially duplicated on invoices, vouchers and journal entries. There should be no feature loss, except the one allowing to group multiple journal items together based on the same product during the invoice validation. ==== Changes made in models ===== * account.invoice: model removed. Instead, now use account.move with following mapping field (account.invoice) field (account.move) ----------------------- -------------------- name invoice_payment_ref number name reference ref comment narration user_id invoice_user_id amount_ total_company_signed amount_total_signed residual amount_residual state state + invoice_payment_state /!\ selection changed date_invoice invoice_date date_due invoice_date_due sent invoice_sent origin invoice_origin payment_term_id invoice_payment_term_id partner_bank_id invoice_partner_bank_id incoterm_id invoice_incoterm_id vendor_bill_id invoice_vendor_bill_id source_email invoice_source_email vendor_display_name invoice_vendor_display_name invoice_icon invoice_vendor_icon cash_rounding_id invoice_cash_rounding_id sequence_number_next invoice_sequence_number_next sequence_number_next_prefix invoice_sequence_number_next_prefix 'invoices' subset of account.move can be accessed by using the selection field 'type' or one of the many helpers like is_invoice() * account.move: now has a valid state 'cancel' that has to be excluded from all business logic * account.move: field 'amount' renamed into 'amount_total' * account.move: field 'reverse_entry_id' renamed into 'reversed_entry_id' * account.move.line: now has a field 'display_type' that has to be excluded from all business logic, in order to support invoice layouting * account.invoice.line: model removed. Instead, now use account.move.line with following mapping field (account.invoice.line) field (account.move.line) ---------------------------- ------------------------- invoice_id move_id uom_id product_uom_id invoice_line_tax_ids tax_ids account_analytic_id analytic_account_id 'invoice lines' subset of all account.move.line from a journal entry can be accessed by using the boolean field 'exclude_from_invoice_tab' * account.invoice.tax: model removed. Instead, now use account.move.line with following mapping field (account.invoice.tax) field (account.move.line) --------------------------- ------------------------- invoice_id move_id account_analytic_id analytic_account_id amount price_unit base tax_base_amount 'tax lines' subset of all account.move.line from a journal entry can be accessed by using the relational field 'tax_line_id' * account.invoice.confirm: model removed. Instead, now use the 'post()' function of account.move * account.invoice.refund: model removed. Instead, now use account.move.reversal to reverse the entries with the same options as we had for invoices * account.voucher: model removed. Instead, now use account.move of type in ['out_receipt', 'in_receipt] * account.voucher.line: model removed. Instead, now use account.move.line ==== Changes made in functions ==== * on account.move, method _run_post_draft_to_post() renamed into _autopost_draft_entries() * on account.move, method action_account_invoice_payment() renamed into action_invoice_register_payment() * on account.move, method action_invoice_reconcile_to_check() renamed into action_open_matching_suspense_moves() * on account.move, method _get_domain_edition_mode_available() renamed into _get_domain_matching_supsense_moves() * on account.move, method _get_intrastat_country_id() renamed into _get_invoice_intrastat_country_id() * on account.move.line, method _get_domain_for_edition_mode() renamed into _get_suspense_moves_domain() * in account.bank.statement, contextual key 'edition_mode' renamed into 'suspense_moves_mode' Was task 1917430
2019-06-10[FIX] generic: fix typo in email templates.Prakash Prajapati
Replace the email template content form if you have any question to if you have any questions. task-1962924 Closes #33520 Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-04-12[IMP] account: improvement into the invoice mail templatejpr-odoo
with this commit, we have added comma ',' after the name of the customer Task ID: 1930087
2019-04-23[FIX][IMP] various: improve recipients computation in mail templatesThibault Delavallée
Purpose: use more email_formatted when possible, clean and simplify email_from, email_to and partner_to computation. Next step is to try to extract some common patterns in tools or methods in order to simplify template creation and customization. Related to task 1972615 Linked to PR #32872
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.