Skip to content

Commit

Permalink
Merge pull request #1404 from OCA/16.0
Browse files Browse the repository at this point in the history
Syncing from upstream OCA/account-invoicing (16.0)
  • Loading branch information
bt-admin authored Feb 7, 2025
2 parents 0ad04f0 + 137638b commit 0e3ad6c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ addon | version | maintainers | summary
[account_invoice_refund_reason_skip_anglo_saxon](account_invoice_refund_reason_skip_anglo_saxon/) | 16.0.1.0.0 | [![ChrisOForgeFlow](https://github.com/ChrisOForgeFlow.png?size=30px)](https://github.com/ChrisOForgeFlow) | Account Invoice Refund Reason.
[account_invoice_refund_reinvoice](account_invoice_refund_reinvoice/) | 16.0.1.0.0 | | Allow to Reinvoice a Refund
[account_invoice_section_sale_order](account_invoice_section_sale_order/) | 16.0.1.0.0 | | For invoices targetting multiple sale order addsections with sale order name.
[account_invoice_show_currency_rate](account_invoice_show_currency_rate/) | 16.0.1.0.6 | [![victoralmau](https://github.com/victoralmau.png?size=30px)](https://github.com/victoralmau) | Show currency rate in invoices.
[account_invoice_show_currency_rate](account_invoice_show_currency_rate/) | 16.0.1.0.7 | [![victoralmau](https://github.com/victoralmau.png?size=30px)](https://github.com/victoralmau) | Show currency rate in invoices.
[account_invoice_supplier_ref_unique](account_invoice_supplier_ref_unique/) | 16.0.1.0.0 | | Checks that supplier invoices are not entered twice
[account_invoice_supplier_self_invoice](account_invoice_supplier_self_invoice/) | 16.0.1.0.0 | | Purchase Self Invoice
[account_invoice_supplierinfo_update](account_invoice_supplierinfo_update/) | 16.0.1.1.0 | [![legalsylvain](https://github.com/legalsylvain.png?size=30px)](https://github.com/legalsylvain) | In the supplier invoice, automatically updates all products whose unit price on the line is different from the supplier price
Expand Down
4 changes: 2 additions & 2 deletions account_global_discount/i18n/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-07-31 14:11+0000\n"
"PO-Revision-Date: 2025-02-06 11:06+0000\n"
"Last-Translator: mymage <[email protected]>\n"
"Language-Team: none\n"
"Language: it\n"
Expand Down Expand Up @@ -224,7 +224,7 @@ msgstr "Totale Sconti Globali"
#. module: account_global_discount
#: model_terms:ir.ui.view,arch_db:account_global_discount.view_move_form
msgid "Untaxed Amount Before Disc."
msgstr "Imponibile pre-sconto"
msgstr "Importo imponibile pre-sconto"

#. module: account_global_discount
#: code:addons/account_global_discount/models/account_move.py:0
Expand Down
2 changes: 1 addition & 1 deletion account_invoice_show_currency_rate/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Account Invoice Show Currency Rate
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:732e5647d108123475f82ec732a29389cd4b9ca0ff54f3f135530ff1ff5fe1c5
!! source digest: sha256:5acb08a666fe3c6633d55f8c7237a01bac7edabc47ee5291534a5431378d776f
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down
2 changes: 1 addition & 1 deletion account_invoice_show_currency_rate/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "Account Invoice Show Currency Rate",
"summary": "Show currency rate in invoices.",
"version": "16.0.1.0.6",
"version": "16.0.1.0.7",
"category": "Accounting & Finance",
"website": "https://github.com/OCA/account-invoicing",
"author": "Tecnativa, Odoo Community Association (OCA)",
Expand Down
6 changes: 2 additions & 4 deletions account_invoice_show_currency_rate/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def _compute_currency_rate_amount(self):
[abs(amc) for amc in lines.mapped("amount_currency")]
)
total_balance_positive = sum([abs(b) for b in lines.mapped("balance")])
item.currency_rate_amount = item.currency_id.round(
item.currency_rate_amount = (
amount_currency_positive / total_balance_positive
)
else:
Expand Down Expand Up @@ -72,8 +72,6 @@ def _compute_currency_rate(self):
if line.move_id.state != "posted" or not line.amount_currency:
continue
line.currency_rate = (
line.currency_id.round(abs(line.amount_currency) / abs(line.balance))
if line.balance
else 0
abs(line.amount_currency) / abs(line.balance) if line.balance else 0
)
return res
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">Account Invoice Show Currency Rate</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:732e5647d108123475f82ec732a29389cd4b9ca0ff54f3f135530ff1ff5fe1c5
!! source digest: sha256:5acb08a666fe3c6633d55f8c7237a01bac7edabc47ee5291534a5431378d776f
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/account-invoicing/tree/16.0/account_invoice_show_currency_rate"><img alt="OCA/account-invoicing" src="https://img.shields.io/badge/github-OCA%2Faccount--invoicing-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-account_invoice_show_currency_rate"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/account-invoicing&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module shows the currency rate applied in invoices, so you can visually verify what is going to be applied for the exchange, or which one was applied once converted to company currency.</p>
Expand Down

0 comments on commit 0e3ad6c

Please sign in to comment.