Skip to content

Commit

Permalink
[FIX] account: Duplicates a customer invoice
Browse files Browse the repository at this point in the history
Fine tuning of this commit: a7cd820
When clicking on button "Duplicates" it printed "Duplicate + number". Now it prints
" Duplicate invoice + number" if the customer invoice is of type out_invoice.

opw:708440
  • Loading branch information
simongoffin committed Mar 7, 2017
1 parent 76b7242 commit 8c2db9a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion addons/account/i18n/account.pot
Expand Up @@ -394,14 +394,19 @@ msgstr ""

#. module: account
#: model:ir.ui.view,arch_db:account.account_invoice_report_duplicate
msgid "<span>Duplicate</span>"
msgid "<span>invoice</span>"
msgstr ""

#. module: account
#: model:ir.ui.view,arch_db:account.account_invoice_report_duplicate
msgid "<span>refund</span>"
msgstr ""

#. module: account
#: model:ir.ui.view,arch_db:account.account_invoice_report_duplicate
msgid "<span>Duplicate</span>"
msgstr ""

#. module: account
#: model:ir.ui.view,arch_db:account.account_journal_dashboard_kanban_view
msgid "<span>New Bill</span>"
Expand Down
1 change: 1 addition & 0 deletions addons/account/views/report_invoice.xml
Expand Up @@ -167,6 +167,7 @@
<h2>
<span>Duplicate</span>
<span t-if="o.type == 'out_refund'">refund</span>
<span t-if="o.type == 'out_invoice'">invoice</span>
<span t-field="o.number"/>
</h2>
</xpath>
Expand Down

1 comment on commit 8c2db9a

@mart-e
Copy link
Contributor

@mart-e mart-e commented on 8c2db9a Mar 8, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not the proper way to format a translation.
The translation of "Duplicate invoice 42" may have the words in a different order.

Please sign in to comment.