Skip to content

Commit

Permalink
[MIG] account_due_list_days_overdue: black, isort
Browse files Browse the repository at this point in the history
  • Loading branch information
dani-xtendoo committed Jan 17, 2025
1 parent 1fadf2b commit c62364e
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 66 deletions.
53 changes: 26 additions & 27 deletions account_due_list_days_overdue/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Payments Due list days overdue
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:17a1130f97bee19a9480ac6c000d5cd66313c2b68a808daf5a13b666af10d90d
!! source digest: sha256:d9e95e9d24aef0166913c2131daa3ea1d2babdd09dad20ff604fe4ba0019de88
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand All @@ -17,23 +17,23 @@ Payments Due list days overdue
: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--payment-lightgray.png?logo=github
:target: https://github.com/OCA/account-payment/tree/16.0/account_due_list_days_overdue
:target: https://github.com/OCA/account-payment/tree/17.0/account_due_list_days_overdue
:alt: OCA/account-payment
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-payment-16-0/account-payment-16-0-account_due_list_days_overdue
:target: https://translation.odoo-community.org/projects/account-payment-17-0/account-payment-17-0-account_due_list_days_overdue
: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-payment&target_branch=16.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/account-payment&target_branch=17.0
:alt: Try me on Runboat

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

This module adds to the 'Payments and due list' view the number of days that
an open item is overdue, and classifies the amount due in separate terms
columns (e.g. 1-30, 31-60, +61).
This module adds to the 'Payments and due list' view the number of days
that an open item is overdue, and classifies the amount due in separate
terms columns (e.g. 1-30, 31-60, +61).

The terms columns to show in the list and the number of days for within each
term can be configured.
The terms columns to show in the list and the number of days for within
each term can be configured.

**Table of contents**

Expand All @@ -43,53 +43,52 @@ term can be configured.
Configuration
=============

* Go to 'Invoicing / Configuration / Overdue Terms', and add the terms,
providing the day from, date to and a name that will be displayed in the
Payments and due list as column.

* It is recommended to always add a last term '+ X' where the 'to days' value
is a very big value like 99999.
- Go to 'Invoicing / Configuration / Overdue Terms', and add the terms,
providing the day from, date to and a name that will be displayed in
the Payments and due list as column.
- It is recommended to always add a last term '+ X' where the 'to days'
value is a very big value like 99999.

Usage
=====

To use this module, you need to go to:

* Invoicing / Accounting / Payments and due list
- Invoicing / Accounting / Payments and due list

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-payment/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-payment/issues/new?body=module:%20account_due_list_days_overdue%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/account-payment/issues/new?body=module:%20account_due_list_days_overdue%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
~~~~~~~
-------

* ForgeFlow

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

* Jordi Ballester Alomar <[email protected]>
* Holger Brunn <[email protected]>
* `Sygel <https://www.sygel.es>`_:
- Jordi Ballester Alomar <[email protected]>
- Holger Brunn <[email protected]>
- `Sygel <https://www.sygel.es>`__:

* Valentin Vinagre <[email protected]>
- Valentin Vinagre <[email protected]>

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

* Víctor Martínez
- Víctor Martínez

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

This module is maintained by the OCA.

Expand All @@ -101,6 +100,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 1 addition & 1 deletion account_due_list_days_overdue/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{
"name": "Payments Due list days overdue",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"category": "Accounting",
"author": "Odoo Community Association (OCA), ForgeFlow",
"website": "https://github.com/OCA/account-payment",
Expand Down
2 changes: 1 addition & 1 deletion account_due_list_days_overdue/models/account_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def _search_days_overdue(self, operator, value):
days=value
)
if operator in ("!=", "<>", "in", "not in"):
raise ValueError("Invalid operator: {}".format(operator))
raise ValueError(f"Invalid operator: {operator}")
if operator == ">":
operator = "<"
elif operator == "<":
Expand Down
6 changes: 0 additions & 6 deletions account_due_list_days_overdue/readme/CONFIGURE.rst

This file was deleted.

9 changes: 0 additions & 9 deletions account_due_list_days_overdue/readme/CONTRIBUTORS.rst

This file was deleted.

6 changes: 0 additions & 6 deletions account_due_list_days_overdue/readme/DESCRIPTION.rst

This file was deleted.

3 changes: 0 additions & 3 deletions account_due_list_days_overdue/readme/USAGE.rst

This file was deleted.

26 changes: 13 additions & 13 deletions account_due_list_days_overdue/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,14 +367,14 @@ <h1 class="title">Payments Due list days overdue</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:17a1130f97bee19a9480ac6c000d5cd66313c2b68a808daf5a13b666af10d90d
!! source digest: sha256:d9e95e9d24aef0166913c2131daa3ea1d2babdd09dad20ff604fe4ba0019de88
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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-payment/tree/16.0/account_due_list_days_overdue"><img alt="OCA/account-payment" src="https://img.shields.io/badge/github-OCA%2Faccount--payment-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-payment-16-0/account-payment-16-0-account_due_list_days_overdue"><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-payment&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 adds to the ‘Payments and due list’ view the number of days that
an open item is overdue, and classifies the amount due in separate terms
columns (e.g. 1-30, 31-60, +61).</p>
<p>The terms columns to show in the list and the number of days for within each
term can be configured.</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-payment/tree/17.0/account_due_list_days_overdue"><img alt="OCA/account-payment" src="https://img.shields.io/badge/github-OCA%2Faccount--payment-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-payment-17-0/account-payment-17-0-account_due_list_days_overdue"><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-payment&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 adds to the ‘Payments and due list’ view the number of days
that an open item is overdue, and classifies the amount due in separate
terms columns (e.g. 1-30, 31-60, +61).</p>
<p>The terms columns to show in the list and the number of days for within
each term can be configured.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -393,10 +393,10 @@ <h1 class="title">Payments Due list days overdue</h1>
<h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
<ul class="simple">
<li>Go to ‘Invoicing / Configuration / Overdue Terms’, and add the terms,
providing the day from, date to and a name that will be displayed in the
Payments and due list as column.</li>
<li>It is recommended to always add a last term ‘+ X’ where the ‘to days’ value
is a very big value like 99999.</li>
providing the day from, date to and a name that will be displayed in
the Payments and due list as column.</li>
<li>It is recommended to always add a last term ‘+ X’ where the ‘to days’
value is a very big value like 99999.</li>
</ul>
</div>
<div class="section" id="usage">
Expand All @@ -411,7 +411,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-payment/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-payment/issues/new?body=module:%20account_due_list_days_overdue%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-payment/issues/new?body=module:%20account_due_list_days_overdue%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 @@ -446,7 +446,7 @@ <h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-payment/tree/16.0/account_due_list_days_overdue">OCA/account-payment</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-payment/tree/17.0/account_due_list_days_overdue">OCA/account-payment</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

0 comments on commit c62364e

Please sign in to comment.