Skip to content

Commit

Permalink
[IMP] : pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeer2234 committed Mar 20, 2024
1 parent 83e014c commit 4286bdb
Show file tree
Hide file tree
Showing 13 changed files with 86 additions and 58 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
Expand Down
58 changes: 33 additions & 25 deletions account_invoice_show_currency_rate/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,20 @@ Account Invoice Show Currency Rate
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--invoicing-lightgray.png?logo=github
:target: https://github.com/OCA/account-invoicing/tree/16.0/account_invoice_show_currency_rate
:target: https://github.com/OCA/account-invoicing/tree/17.0/account_invoice_show_currency_rate
:alt: OCA/account-invoicing
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-account_invoice_show_currency_rate
:target: https://translation.odoo-community.org/projects/account-invoicing-17-0/account-invoicing-17-0-account_invoice_show_currency_rate
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/account-invoicing&target_branch=16.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/account-invoicing&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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.
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.

**Table of contents**

Expand All @@ -40,56 +42,62 @@ Configuration

Enable the option for multiple currencies in your instance:

#. Go to Invoicing > Configuration > Settings > Currencies > Multi-Currencies
#. Go to any draft invoice
#. Change the invoice currency
#. The proper currency rate, based on the invoice date and the selected currency, will be shown.
#. Add any invoice line.
#. Odoo has already generated the journal item lines with the rate applied, so the currency rate shown is get from the division between the amount in currency by the amount in company currency.
1. Go to Invoicing > Configuration > Settings > Currencies >
Multi-Currencies
2. Go to any draft invoice
3. Change the invoice currency
4. The proper currency rate, based on the invoice date and the selected
currency, will be shown.
5. Add any invoice line.
6. Odoo has already generated the journal item lines with the rate
applied, so the currency rate shown is get from the division between
the amount in currency by the amount in company currency.

Some rates must be defined (and be distinct to 1.0) for currencies different from the company default.
Some rates must be defined (and be distinct to 1.0) for currencies
different from the company default.

#. Go to Invoicing > Configuration > Currencies and go to EUR
#. Go to Rates smart-button
#. Update 01/01/2010 record and change rate to 1.5
1. Go to Invoicing > Configuration > Currencies and go to EUR
2. Go to Rates smart-button
3. Update 01/01/2010 record and change rate to 1.5

Usage
=====

To use this module, you need to:

#. Go to Invoicing > Customer > Invoice
#. Create Invoice and set Currency distinct to company currency (EUR for example)
#. Rate account show according to currency defined.
1. Go to Invoicing > Customer > Invoice
2. Create Invoice and set Currency distinct to company currency (EUR for
example)
3. Rate account show according to currency defined.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-invoicing/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/account-invoicing/issues/new?body=module:%20account_invoice_show_currency_rate%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/account-invoicing/issues/new?body=module:%20account_invoice_show_currency_rate%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~
-------

* Tecnativa

Contributors
~~~~~~~~~~~~
------------

* `Tecnativa <https://www.tecnativa.com>`_:
- `Tecnativa <https://www.tecnativa.com>`__:

* Pedro M. Baeza
* Víctor Martínez
- Pedro M. Baeza
- Víctor Martínez

Maintainers
~~~~~~~~~~~
-----------

This module is maintained by the OCA.

Expand All @@ -109,6 +117,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-victoralmau|

This module is part of the `OCA/account-invoicing <https://github.com/OCA/account-invoicing/tree/16.0/account_invoice_show_currency_rate>`_ project on GitHub.
This module is part of the `OCA/account-invoicing <https://github.com/OCA/account-invoicing/tree/17.0/account_invoice_show_currency_rate>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions account_invoice_show_currency_rate/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
19 changes: 19 additions & 0 deletions account_invoice_show_currency_rate/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Enable the option for multiple currencies in your instance:

1. Go to Invoicing \> Configuration \> Settings \> Currencies \>
Multi-Currencies
2. Go to any draft invoice
3. Change the invoice currency
4. The proper currency rate, based on the invoice date and the selected
currency, will be shown.
5. Add any invoice line.
6. Odoo has already generated the journal item lines with the rate
applied, so the currency rate shown is get from the division between
the amount in currency by the amount in company currency.

Some rates must be defined (and be distinct to 1.0) for currencies
different from the company default.

1. Go to Invoicing \> Configuration \> Currencies and go to EUR
2. Go to Rates smart-button
3. Update 01/01/2010 record and change rate to 1.5
14 changes: 0 additions & 14 deletions account_invoice_show_currency_rate/readme/CONFIGURE.rst

This file was deleted.

3 changes: 3 additions & 0 deletions account_invoice_show_currency_rate/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- [Tecnativa](https://www.tecnativa.com):
- Pedro M. Baeza
- Víctor Martínez
4 changes: 0 additions & 4 deletions account_invoice_show_currency_rate/readme/CONTRIBUTORS.rst

This file was deleted.

3 changes: 3 additions & 0 deletions account_invoice_show_currency_rate/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
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.
1 change: 0 additions & 1 deletion account_invoice_show_currency_rate/readme/DESCRIPTION.rst

This file was deleted.

6 changes: 6 additions & 0 deletions account_invoice_show_currency_rate/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
To use this module, you need to:

1. Go to Invoicing \> Customer \> Invoice
2. Create Invoice and set Currency distinct to company currency (EUR
for example)
3. Rate account show according to currency defined.
5 changes: 0 additions & 5 deletions account_invoice_show_currency_rate/readme/USAGE.rst

This file was deleted.

26 changes: 17 additions & 9 deletions account_invoice_show_currency_rate/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,10 @@ <h1 class="title">Account Invoice Show Currency Rate</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:4fddaa53eb3f4918cbd5095e5107144369f64ad36133fd2909567bbd2625c13e
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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>
<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/17.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-17-0/account-invoicing-17-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=17.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>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -389,14 +391,19 @@ <h1 class="title">Account Invoice Show Currency Rate</h1>
<h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
<p>Enable the option for multiple currencies in your instance:</p>
<ol class="arabic simple">
<li>Go to Invoicing &gt; Configuration &gt; Settings &gt; Currencies &gt; Multi-Currencies</li>
<li>Go to Invoicing &gt; Configuration &gt; Settings &gt; Currencies &gt;
Multi-Currencies</li>
<li>Go to any draft invoice</li>
<li>Change the invoice currency</li>
<li>The proper currency rate, based on the invoice date and the selected currency, will be shown.</li>
<li>The proper currency rate, based on the invoice date and the selected
currency, will be shown.</li>
<li>Add any invoice line.</li>
<li>Odoo has already generated the journal item lines with the rate applied, so the currency rate shown is get from the division between the amount in currency by the amount in company currency.</li>
<li>Odoo has already generated the journal item lines with the rate
applied, so the currency rate shown is get from the division between
the amount in currency by the amount in company currency.</li>
</ol>
<p>Some rates must be defined (and be distinct to 1.0) for currencies different from the company default.</p>
<p>Some rates must be defined (and be distinct to 1.0) for currencies
different from the company default.</p>
<ol class="arabic simple">
<li>Go to Invoicing &gt; Configuration &gt; Currencies and go to EUR</li>
<li>Go to Rates smart-button</li>
Expand All @@ -408,7 +415,8 @@ <h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
<p>To use this module, you need to:</p>
<ol class="arabic simple">
<li>Go to Invoicing &gt; Customer &gt; Invoice</li>
<li>Create Invoice and set Currency distinct to company currency (EUR for example)</li>
<li>Create Invoice and set Currency distinct to company currency (EUR for
example)</li>
<li>Rate account show according to currency defined.</li>
</ol>
</div>
Expand All @@ -417,7 +425,7 @@ <h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/account-invoicing/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/account-invoicing/issues/new?body=module:%20account_invoice_show_currency_rate%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/account-invoicing/issues/new?body=module:%20account_invoice_show_currency_rate%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand Down Expand Up @@ -447,7 +455,7 @@ <h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
<p><a class="reference external image-reference" href="https://github.com/victoralmau"><img alt="victoralmau" src="https://github.com/victoralmau.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-invoicing/tree/16.0/account_invoice_show_currency_rate">OCA/account-invoicing</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-invoicing/tree/17.0/account_invoice_show_currency_rate">OCA/account-invoicing</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
Expand Down

0 comments on commit 4286bdb

Please sign in to comment.