From 4b783d64e31ef53102c953e65b23eaed9f17bbea Mon Sep 17 00:00:00 2001
From: Henrik Norlin
Date: Sat, 3 Feb 2024 22:20:17 +0100
Subject: [PATCH] [IMP] account_reconcile_oca: black, isort, prettier
---
account_reconcile_oca/README.rst | 35 ++++++++++---------
.../models/account_bank_statement_line.py | 6 ++--
.../models/account_move_line.py | 1 -
account_reconcile_oca/pyproject.toml | 3 ++
account_reconcile_oca/readme/CONTRIBUTORS.md | 1 +
account_reconcile_oca/readme/CONTRIBUTORS.rst | 1 -
.../{DESCRIPTION.rst => DESCRIPTION.md} | 3 +-
account_reconcile_oca/readme/ROADMAP.md | 3 ++
account_reconcile_oca/readme/ROADMAP.rst | 3 --
account_reconcile_oca/readme/USAGE.md | 10 ++++++
account_reconcile_oca/readme/USAGE.rst | 12 -------
.../static/description/index.html | 18 +++++-----
12 files changed, 50 insertions(+), 46 deletions(-)
create mode 100644 account_reconcile_oca/pyproject.toml
create mode 100644 account_reconcile_oca/readme/CONTRIBUTORS.md
delete mode 100644 account_reconcile_oca/readme/CONTRIBUTORS.rst
rename account_reconcile_oca/readme/{DESCRIPTION.rst => DESCRIPTION.md} (78%)
create mode 100644 account_reconcile_oca/readme/ROADMAP.md
delete mode 100644 account_reconcile_oca/readme/ROADMAP.rst
create mode 100644 account_reconcile_oca/readme/USAGE.md
delete mode 100644 account_reconcile_oca/readme/USAGE.rst
diff --git a/account_reconcile_oca/README.rst b/account_reconcile_oca/README.rst
index b7bf0969c9..63f7ae7187 100644
--- a/account_reconcile_oca/README.rst
+++ b/account_reconcile_oca/README.rst
@@ -17,18 +17,19 @@ Account Reconcile Oca
: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--reconcile-lightgray.png?logo=github
- :target: https://github.com/OCA/account-reconcile/tree/16.0/account_reconcile_oca
+ :target: https://github.com/OCA/account-reconcile/tree/17.0/account_reconcile_oca
:alt: OCA/account-reconcile
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/account-reconcile-16-0/account-reconcile-16-0-account_reconcile_oca
+ :target: https://translation.odoo-community.org/projects/account-reconcile-17-0/account-reconcile-17-0-account_reconcile_oca
: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-reconcile&target_branch=16.0
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/account-reconcile&target_branch=17.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
-This addon allows to reconcile bank statements and account marked as `reconcile`.
+This addon allows to reconcile bank statements and account marked as
+reconcile.
**Table of contents**
@@ -39,16 +40,16 @@ Usage
=====
Bank reconcile
-~~~~~~~~~~~~~~
+--------------
-Access `Invoicing / Dashboard` with a user with Full Acounting capabilities.
-Select reconcile on the journal of your choice.
+Access Invoicing / Dashboard with a user with Full Acounting
+capabilities. Select reconcile on the journal of your choice.
Account reconcile
-~~~~~~~~~~~~~~~~~
+-----------------
-Access `Invoicing / Accounting / Actions / Reconcile`
-All the possible reconcile options will show and you will be able to reconcile properly.
+Access Invoicing / Accounting / Actions / Reconcile All the possible
+reconcile options will show and you will be able to reconcile properly.
You can access the same widget from accounts and Partners.
Known issues / Roadmap
@@ -56,7 +57,7 @@ Known issues / Roadmap
The following bugs are already detected:
-* Creation of activities on the chatter do show automatically
+- Creation of activities on the chatter do show automatically
Bug Tracker
===========
@@ -64,7 +65,7 @@ Bug Tracker
Bugs are tracked on `GitHub 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 `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -72,18 +73,18 @@ Credits
=======
Authors
-~~~~~~~
+-------
* CreuBlanca
* Dixmit
Contributors
-~~~~~~~~~~~~
+------------
-* Enric Tobella
+- Enric Tobella
Maintainers
-~~~~~~~~~~~
+-----------
This module is maintained by the OCA.
@@ -103,6 +104,6 @@ Current `maintainer `__:
|maintainer-etobella|
-This module is part of the `OCA/account-reconcile `_ project on GitHub.
+This module is part of the `OCA/account-reconcile `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/account_reconcile_oca/models/account_bank_statement_line.py b/account_reconcile_oca/models/account_bank_statement_line.py
index 2b050d4413..9a524b8352 100644
--- a/account_reconcile_oca/models/account_bank_statement_line.py
+++ b/account_reconcile_oca/models/account_bank_statement_line.py
@@ -111,7 +111,7 @@ def _onchange_manual_model_id(self):
self.manual_model_id,
self.reconcile_data_info["reconcile_auxiliary_id"],
),
- self.manual_reference
+ self.manual_reference,
)
else:
# Refreshing data
@@ -444,7 +444,7 @@ def _default_reconcile_data(self, from_unreconcile=False):
*self._reconcile_data_by_model(
data, res["model"], reconcile_auxiliary_id
),
- self.manual_reference
+ self.manual_reference,
)
elif res and res.get("amls"):
amount = self.amount_total_signed
@@ -643,7 +643,7 @@ def create(self, mvals):
*record._reconcile_data_by_model(
data, res["model"], reconcile_auxiliary_id
),
- self.manual_reference
+ self.manual_reference,
)
elif res.get("amls"):
amount = self.amount
diff --git a/account_reconcile_oca/models/account_move_line.py b/account_reconcile_oca/models/account_move_line.py
index 7362a983a7..fe2f8080a0 100644
--- a/account_reconcile_oca/models/account_move_line.py
+++ b/account_reconcile_oca/models/account_move_line.py
@@ -6,7 +6,6 @@
class AccountMoveLine(models.Model):
-
_inherit = "account.move.line"
def action_reconcile_manually(self):
diff --git a/account_reconcile_oca/pyproject.toml b/account_reconcile_oca/pyproject.toml
new file mode 100644
index 0000000000..4231d0cccb
--- /dev/null
+++ b/account_reconcile_oca/pyproject.toml
@@ -0,0 +1,3 @@
+[build-system]
+requires = ["whool"]
+build-backend = "whool.buildapi"
diff --git a/account_reconcile_oca/readme/CONTRIBUTORS.md b/account_reconcile_oca/readme/CONTRIBUTORS.md
new file mode 100644
index 0000000000..c84bf49d7c
--- /dev/null
+++ b/account_reconcile_oca/readme/CONTRIBUTORS.md
@@ -0,0 +1 @@
+- Enric Tobella
diff --git a/account_reconcile_oca/readme/CONTRIBUTORS.rst b/account_reconcile_oca/readme/CONTRIBUTORS.rst
deleted file mode 100644
index 85004765bc..0000000000
--- a/account_reconcile_oca/readme/CONTRIBUTORS.rst
+++ /dev/null
@@ -1 +0,0 @@
-* Enric Tobella
diff --git a/account_reconcile_oca/readme/DESCRIPTION.rst b/account_reconcile_oca/readme/DESCRIPTION.md
similarity index 78%
rename from account_reconcile_oca/readme/DESCRIPTION.rst
rename to account_reconcile_oca/readme/DESCRIPTION.md
index e50452fb2d..ddb9739412 100644
--- a/account_reconcile_oca/readme/DESCRIPTION.rst
+++ b/account_reconcile_oca/readme/DESCRIPTION.md
@@ -1 +1,2 @@
-This addon allows to reconcile bank statements and account marked as `reconcile`.
+This addon allows to reconcile bank statements and account marked as
+reconcile.
diff --git a/account_reconcile_oca/readme/ROADMAP.md b/account_reconcile_oca/readme/ROADMAP.md
new file mode 100644
index 0000000000..412733360f
--- /dev/null
+++ b/account_reconcile_oca/readme/ROADMAP.md
@@ -0,0 +1,3 @@
+The following bugs are already detected:
+
+- Creation of activities on the chatter do show automatically
diff --git a/account_reconcile_oca/readme/ROADMAP.rst b/account_reconcile_oca/readme/ROADMAP.rst
deleted file mode 100644
index 24e9bc53f8..0000000000
--- a/account_reconcile_oca/readme/ROADMAP.rst
+++ /dev/null
@@ -1,3 +0,0 @@
-The following bugs are already detected:
-
-* Creation of activities on the chatter do show automatically
diff --git a/account_reconcile_oca/readme/USAGE.md b/account_reconcile_oca/readme/USAGE.md
new file mode 100644
index 0000000000..2a053a39f6
--- /dev/null
+++ b/account_reconcile_oca/readme/USAGE.md
@@ -0,0 +1,10 @@
+## Bank reconcile
+
+Access Invoicing / Dashboard with a user with Full Acounting
+capabilities. Select reconcile on the journal of your choice.
+
+## Account reconcile
+
+Access Invoicing / Accounting / Actions / Reconcile All the possible
+reconcile options will show and you will be able to reconcile properly.
+You can access the same widget from accounts and Partners.
diff --git a/account_reconcile_oca/readme/USAGE.rst b/account_reconcile_oca/readme/USAGE.rst
deleted file mode 100644
index fc080e09b4..0000000000
--- a/account_reconcile_oca/readme/USAGE.rst
+++ /dev/null
@@ -1,12 +0,0 @@
-Bank reconcile
-~~~~~~~~~~~~~~
-
-Access `Invoicing / Dashboard` with a user with Full Acounting capabilities.
-Select reconcile on the journal of your choice.
-
-Account reconcile
-~~~~~~~~~~~~~~~~~
-
-Access `Invoicing / Accounting / Actions / Reconcile`
-All the possible reconcile options will show and you will be able to reconcile properly.
-You can access the same widget from accounts and Partners.
diff --git a/account_reconcile_oca/static/description/index.html b/account_reconcile_oca/static/description/index.html
index 6eb16d822b..379e58cc33 100644
--- a/account_reconcile_oca/static/description/index.html
+++ b/account_reconcile_oca/static/description/index.html
@@ -1,3 +1,4 @@
+
@@ -368,8 +369,9 @@ Account Reconcile Oca
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:0259c9d504534b4ee88e7b929ddb6c524dd35cb217811c87b8dd02e0a433f1f1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-

-This addon allows to reconcile bank statements and account marked as reconcile.
+

+This addon allows to reconcile bank statements and account marked as
+reconcile.
Table of contents
@@ -392,13 +394,13 @@ Account Reconcile Oca
-
Access Invoicing / Dashboard with a user with Full Acounting capabilities.
-Select reconcile on the journal of your choice.
+
Access Invoicing / Dashboard with a user with Full Acounting
+capabilities. Select reconcile on the journal of your choice.
-
Access Invoicing / Accounting / Actions / Reconcile
-All the possible reconcile options will show and you will be able to reconcile properly.
+
Access Invoicing / Accounting / Actions / Reconcile All the possible
+reconcile options will show and you will be able to reconcile properly.
You can access the same widget from accounts and Partners.
@@ -414,7 +416,7 @@
Bugs are tracked on GitHub 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.
+feedback.
Do not contact contributors directly about support or help with technical issues.