[TYPO] account: rename "refund" to "credit note"
see opw: 32014
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -646,7 +646,7 @@
|
||||
<menuitem action="action_invoice_tree1" id="menu_action_invoice_tree1" parent="menu_finance_receivables" sequence="1"/>
|
||||
|
||||
<record id="action_invoice_out_refund" model="ir.actions.act_window">
|
||||
<field name="name">Customer Refunds</field>
|
||||
<field name="name">Customer Credit Notes</field>
|
||||
<field name="res_model">account.invoice</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,kanban,form,calendar,pivot,graph</field>
|
||||
@@ -655,7 +655,7 @@
|
||||
<field name="search_view_id" ref="view_account_invoice_filter"/>
|
||||
<field name="help" type="html">
|
||||
<p class="oe_view_nocontent_create">
|
||||
Click to create a customer refund.
|
||||
Click to create a customer credit note.
|
||||
</p><p>
|
||||
Odoo's electronic invoicing allows to ease and fasten the
|
||||
collection of customer payments. Your customer receives the
|
||||
@@ -724,7 +724,7 @@
|
||||
|
||||
|
||||
<record id="action_invoice_in_refund" model="ir.actions.act_window">
|
||||
<field name="name">Vendor Refunds</field>
|
||||
<field name="name">Vendor Credit Notes</field>
|
||||
<field name="res_model">account.invoice</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,kanban,form,calendar,pivot,graph</field>
|
||||
@@ -733,7 +733,7 @@
|
||||
<field name="search_view_id" ref="view_account_invoice_filter"/>
|
||||
<field name="help" type="html">
|
||||
<p class="oe_view_nocontent_create">
|
||||
Click to record a new vendor refund.
|
||||
Click to record a new vendor credit note.
|
||||
</p><p>
|
||||
You can control the invoice from your vendor according to
|
||||
what you purchased or received.
|
||||
|
||||
Reference in New Issue
Block a user