[IMP] account_reconcile_oca: black, isort, prettier

pull/630/head
Henrik Norlin 2024-02-03 22:20:17 +01:00 committed by Enric Tobella
parent 43a2fc7d74
commit 214337719b
12 changed files with 50 additions and 46 deletions

View File

@ -17,18 +17,19 @@ Account Reconcile Oca
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3 :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--reconcile-lightgray.png?logo=github .. |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 :alt: OCA/account-reconcile
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png .. |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 :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png .. |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 :alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5| |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** **Table of contents**
@ -39,16 +40,16 @@ Usage
===== =====
Bank reconcile Bank reconcile
~~~~~~~~~~~~~~ --------------
Access `Invoicing / Dashboard` with a user with Full Acounting capabilities. Access Invoicing / Dashboard with a user with Full Acounting
Select reconcile on the journal of your choice. capabilities. Select reconcile on the journal of your choice.
Account reconcile Account reconcile
~~~~~~~~~~~~~~~~~ -----------------
Access `Invoicing / Accounting / Actions / Reconcile` Access Invoicing / Accounting / Actions / Reconcile All the possible
All the possible reconcile options will show and you will be able to reconcile properly. reconcile options will show and you will be able to reconcile properly.
You can access the same widget from accounts and Partners. You can access the same widget from accounts and Partners.
Known issues / Roadmap Known issues / Roadmap
@ -56,7 +57,7 @@ Known issues / Roadmap
The following bugs are already detected: 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 Bug Tracker
=========== ===========
@ -64,7 +65,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-reconcile/issues>`_. Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-reconcile/issues>`_.
In case of trouble, please check there if your issue has already been reported. 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 If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/account-reconcile/issues/new?body=module:%20account_reconcile_oca%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. `feedback <https://github.com/OCA/account-reconcile/issues/new?body=module:%20account_reconcile_oca%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. Do not contact contributors directly about support or help with technical issues.
@ -72,18 +73,18 @@ Credits
======= =======
Authors Authors
~~~~~~~ -------
* CreuBlanca * CreuBlanca
* Dixmit * Dixmit
Contributors Contributors
~~~~~~~~~~~~ ------------
* Enric Tobella - Enric Tobella
Maintainers Maintainers
~~~~~~~~~~~ -----------
This module is maintained by the OCA. This module is maintained by the OCA.
@ -103,6 +104,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
|maintainer-etobella| |maintainer-etobella|
This module is part of the `OCA/account-reconcile <https://github.com/OCA/account-reconcile/tree/16.0/account_reconcile_oca>`_ project on GitHub. This module is part of the `OCA/account-reconcile <https://github.com/OCA/account-reconcile/tree/17.0/account_reconcile_oca>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@ -111,7 +111,7 @@ class AccountBankStatementLine(models.Model):
self.manual_model_id, self.manual_model_id,
self.reconcile_data_info["reconcile_auxiliary_id"], self.reconcile_data_info["reconcile_auxiliary_id"],
), ),
self.manual_reference self.manual_reference,
) )
else: else:
# Refreshing data # Refreshing data
@ -444,7 +444,7 @@ class AccountBankStatementLine(models.Model):
*self._reconcile_data_by_model( *self._reconcile_data_by_model(
data, res["model"], reconcile_auxiliary_id data, res["model"], reconcile_auxiliary_id
), ),
self.manual_reference self.manual_reference,
) )
elif res and res.get("amls"): elif res and res.get("amls"):
amount = self.amount_total_signed amount = self.amount_total_signed
@ -643,7 +643,7 @@ class AccountBankStatementLine(models.Model):
*record._reconcile_data_by_model( *record._reconcile_data_by_model(
data, res["model"], reconcile_auxiliary_id data, res["model"], reconcile_auxiliary_id
), ),
self.manual_reference self.manual_reference,
) )
elif res.get("amls"): elif res.get("amls"):
amount = self.amount amount = self.amount

View File

@ -6,7 +6,6 @@ from odoo.exceptions import ValidationError
class AccountMoveLine(models.Model): class AccountMoveLine(models.Model):
_inherit = "account.move.line" _inherit = "account.move.line"
invoice_due_date = fields.Date( invoice_due_date = fields.Date(

View File

@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"

View File

@ -0,0 +1 @@
- Enric Tobella

View File

@ -1 +0,0 @@
* Enric Tobella

View File

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

View File

@ -0,0 +1,3 @@
The following bugs are already detected:
- Creation of activities on the chatter do show automatically

View File

@ -1,3 +0,0 @@
The following bugs are already detected:
* Creation of activities on the chatter do show automatically

View File

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

View File

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

View File

@ -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"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head> <head>
@ -368,8 +369,9 @@ ul.auto-toc {
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:0259c9d504534b4ee88e7b929ddb6c524dd35cb217811c87b8dd02e0a433f1f1 !! source digest: sha256:0259c9d504534b4ee88e7b929ddb6c524dd35cb217811c87b8dd02e0a433f1f1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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-reconcile/tree/16.0/account_reconcile_oca"><img alt="OCA/account-reconcile" src="https://img.shields.io/badge/github-OCA%2Faccount--reconcile-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-reconcile-16-0/account-reconcile-16-0-account_reconcile_oca"><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-reconcile&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><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-reconcile/tree/17.0/account_reconcile_oca"><img alt="OCA/account-reconcile" src="https://img.shields.io/badge/github-OCA%2Faccount--reconcile-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-reconcile-17-0/account-reconcile-17-0-account_reconcile_oca"><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-reconcile&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 addon allows to reconcile bank statements and account marked as <cite>reconcile</cite>.</p> <p>This addon allows to reconcile bank statements and account marked as
reconcile.</p>
<p><strong>Table of contents</strong></p> <p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents"> <div class="contents local topic" id="contents">
<ul class="simple"> <ul class="simple">
@ -392,13 +394,13 @@ ul.auto-toc {
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1> <h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
<div class="section" id="bank-reconcile"> <div class="section" id="bank-reconcile">
<h2><a class="toc-backref" href="#toc-entry-2">Bank reconcile</a></h2> <h2><a class="toc-backref" href="#toc-entry-2">Bank reconcile</a></h2>
<p>Access <cite>Invoicing / Dashboard</cite> with a user with Full Acounting capabilities. <p>Access Invoicing / Dashboard with a user with Full Acounting
Select reconcile on the journal of your choice.</p> capabilities. Select reconcile on the journal of your choice.</p>
</div> </div>
<div class="section" id="account-reconcile"> <div class="section" id="account-reconcile">
<h2><a class="toc-backref" href="#toc-entry-3">Account reconcile</a></h2> <h2><a class="toc-backref" href="#toc-entry-3">Account reconcile</a></h2>
<p>Access <cite>Invoicing / Accounting / Actions / Reconcile</cite> <p>Access Invoicing / Accounting / Actions / Reconcile All the possible
All the possible reconcile options will show and you will be able to reconcile properly. reconcile options will show and you will be able to reconcile properly.
You can access the same widget from accounts and Partners.</p> You can access the same widget from accounts and Partners.</p>
</div> </div>
</div> </div>
@ -414,7 +416,7 @@ You can access the same widget from accounts and Partners.</p>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/account-reconcile/issues">GitHub Issues</a>. <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/account-reconcile/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported. 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 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-reconcile/issues/new?body=module:%20account_reconcile_oca%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-reconcile/issues/new?body=module:%20account_reconcile_oca%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> <p>Do not contact contributors directly about support or help with technical issues.</p>
</div> </div>
<div class="section" id="credits"> <div class="section" id="credits">
@ -441,7 +443,7 @@ mission is to support the collaborative development of Odoo features and
promote its widespread use.</p> promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</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/etobella"><img alt="etobella" src="https://github.com/etobella.png?size=40px" /></a></p> <p><a class="reference external image-reference" href="https://github.com/etobella"><img alt="etobella" src="https://github.com/etobella.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-reconcile/tree/16.0/account_reconcile_oca">OCA/account-reconcile</a> project on GitHub.</p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-reconcile/tree/17.0/account_reconcile_oca">OCA/account-reconcile</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> <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>
</div> </div>