From 5d2ba54be565fc88d650e0b53aa0991f50f9c6cb Mon Sep 17 00:00:00 2001 From: Laurent Smet Date: Wed, 22 Mar 2017 10:20:23 +0100 Subject: [PATCH] [TYPO] account: rename "refund" to "credit note" see opw: 32014 --- addons/account/models/account_invoice.py | 4 ++-- addons/account/views/account_invoice_view.xml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/account/models/account_invoice.py b/addons/account/models/account_invoice.py index 60dc903bce1..662a3e8828b 100644 --- a/addons/account/models/account_invoice.py +++ b/addons/account/models/account_invoice.py @@ -62,7 +62,7 @@ class AccountInvoice(models.Model): def _onchange_amount_total(self): for inv in self: if inv.amount_total < 0: - raise Warning(_('You cannot validate an invoice with a negative total amount. You should create a refund instead.')) + raise Warning(_('You cannot validate an invoice with a negative total amount. You should create a credit note instead.')) @api.model def _default_journal(self): @@ -580,7 +580,7 @@ class AccountInvoice(models.Model): if to_open_invoices.filtered(lambda inv: inv.state != 'draft'): raise UserError(_("Invoice must be in draft state in order to validate it.")) if to_open_invoices.filtered(lambda inv: inv.amount_total < 0): - raise UserError(_("You cannot validate an invoice with a negative total amount. You should create a refund instead.")) + raise UserError(_("You cannot validate an invoice with a negative total amount. You should create a credit note instead.")) to_open_invoices.action_date_assign() to_open_invoices.action_move_create() return to_open_invoices.invoice_validate() diff --git a/addons/account/views/account_invoice_view.xml b/addons/account/views/account_invoice_view.xml index b744b050d5e..b313f1dc431 100644 --- a/addons/account/views/account_invoice_view.xml +++ b/addons/account/views/account_invoice_view.xml @@ -646,7 +646,7 @@ - Customer Refunds + Customer Credit Notes account.invoice form tree,kanban,form,calendar,pivot,graph @@ -655,7 +655,7 @@

- Click to create a customer refund. + Click to create a customer credit note.

Odoo's electronic invoicing allows to ease and fasten the collection of customer payments. Your customer receives the @@ -724,7 +724,7 @@ - Vendor Refunds + Vendor Credit Notes account.invoice form tree,kanban,form,calendar,pivot,graph @@ -733,7 +733,7 @@

- Click to record a new vendor refund. + Click to record a new vendor credit note.

You can control the invoice from your vendor according to what you purchased or received.