[IMP] pylint

pull/808/head
Jordi Ballester Alomar 2025-02-25 15:09:15 +01:00
parent fee65b9d9e
commit edd06e734f
13 changed files with 49 additions and 67 deletions

View File

@ -17,13 +17,13 @@ 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/17.0/account_reconcile_oca :target: https://github.com/OCA/account-reconcile/tree/18.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-17-0/account-reconcile-17-0-account_reconcile_oca :target: https://translation.odoo-community.org/projects/account-reconcile-18-0/account-reconcile-18-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=17.0 :target: https://runboat.odoo-community.org/builds?repo=OCA/account-reconcile&target_branch=18.0
:alt: Try me on Runboat :alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5| |badge1| |badge2| |badge3| |badge4| |badge5|
@ -65,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:%2017.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:%2018.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.
@ -104,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/17.0/account_reconcile_oca>`_ project on GitHub. This module is part of the `OCA/account-reconcile <https://github.com/OCA/account-reconcile/tree/18.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

@ -3,5 +3,4 @@
<record id="base.user_admin" model="res.users"> <record id="base.user_admin" model="res.users">
<field name="groups_id" eval="[(4,ref('account.group_account_user'))]" /> <field name="groups_id" eval="[(4,ref('account.group_account_user'))]" />
</record> </record>
</odoo> </odoo>

View File

@ -369,7 +369,7 @@ ul.auto-toc {
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:fa8f7f5af2e7a631cb39b699ebbc41f1bc6cca067be28665f5d4590c752f3054 !! source digest: sha256:fa8f7f5af2e7a631cb39b699ebbc41f1bc6cca067be28665f5d4590c752f3054
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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><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/18.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-18-0/account-reconcile-18-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=18.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 <p>This addon allows to reconcile bank statements and account marked as
reconcile.</p> reconcile.</p>
<p><strong>Table of contents</strong></p> <p><strong>Table of contents</strong></p>
@ -416,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:%2017.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:%2018.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">
@ -445,7 +445,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/17.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/18.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>

View File

@ -1371,7 +1371,7 @@ class TestReconciliationWidget(TestAccountReconciliationCommon):
) )
# check that adding a partner does not recompute the amounts on accounting # check that adding a partner does not recompute the amounts on accounting
# entries, but is still synchronized with accounting entries # entries, but is still synchronized with accounting entries
f.manual_reference = "account.move.line;%s" % liquidity_lines.id f.manual_reference = f"account.move.line;{liquidity_lines.id}"
f.manual_partner_id = inv1.partner_id f.manual_partner_id = inv1.partner_id
self.assertEqual(f.partner_id, inv1.partner_id) self.assertEqual(f.partner_id, inv1.partner_id)
self.assertEqual(liquidity_lines.debit, 83.33) self.assertEqual(liquidity_lines.debit, 83.33)
@ -1380,7 +1380,7 @@ class TestReconciliationWidget(TestAccountReconciliationCommon):
# partner change # partner change
self.assertEqual(liquidity_lines.debit, 83.33) self.assertEqual(liquidity_lines.debit, 83.33)
self.assertEqual(liquidity_lines.partner_id, inv1.partner_id) self.assertEqual(liquidity_lines.partner_id, inv1.partner_id)
f.manual_reference = "account.move.line;%s" % line["id"] f.manual_reference = f"account.move.line;{line['id']}"
# simulate click on statement line, check amount does not recompute # simulate click on statement line, check amount does not recompute
f.manual_partner_id = inv1.partner_id f.manual_partner_id = inv1.partner_id
self.assertEqual(f.manual_amount, 83.33) self.assertEqual(f.manual_amount, 83.33)

View File

@ -2,7 +2,6 @@
<!-- Copyright 2023 Dixmit <!-- Copyright 2023 Dixmit
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo> <odoo>
<record model="ir.ui.view" id="view_account_list"> <record model="ir.ui.view" id="view_account_list">
<field name="name">account.account.list (in account_reconcile_oca)</field> <field name="name">account.account.list (in account_reconcile_oca)</field>
<field name="model">account.account</field> <field name="model">account.account</field>
@ -19,5 +18,4 @@
</list> </list>
</field> </field>
</record> </record>
</odoo> </odoo>

View File

@ -2,7 +2,6 @@
<!-- Copyright 2023 Dixmit <!-- Copyright 2023 Dixmit
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo> <odoo>
<record model="ir.ui.view" id="account_account_reconcile_form_view"> <record model="ir.ui.view" id="account_account_reconcile_form_view">
<field <field
name="name" name="name"
@ -160,5 +159,4 @@
<field name="action" ref="account_account_reconcile_act_window" /> <field name="action" ref="account_account_reconcile_act_window" />
<field name="sequence" eval="140" /> <field name="sequence" eval="140" />
</record> </record>
</odoo> </odoo>

View File

@ -2,7 +2,6 @@
<!-- Copyright 2023 Dixmit <!-- Copyright 2023 Dixmit
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo> <odoo>
<record id="account_bank_statement_form_edit" model="ir.ui.view"> <record id="account_bank_statement_form_edit" model="ir.ui.view">
<field name="name">Edit Bank statement</field> <field name="name">Edit Bank statement</field>
<field name="model">account.bank.statement</field> <field name="model">account.bank.statement</field>
@ -27,7 +26,6 @@
<field name="line_ids" invisible="1" /> <field name="line_ids" invisible="1" />
</group> </group>
</sheet> </sheet>
</form> </form>
</field> </field>
</record> </record>

View File

@ -2,7 +2,6 @@
<!-- Copyright 2023 Dixmit <!-- Copyright 2023 Dixmit
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo> <odoo>
<record id="bank_statement_line_reconcile_view" model="ir.ui.view"> <record id="bank_statement_line_reconcile_view" model="ir.ui.view">
<field name="name">account.bank.statement.line.reconcile</field> <field name="name">account.bank.statement.line.reconcile</field>
<field name="model">account.bank.statement.line</field> <field name="model">account.bank.statement.line</field>

View File

@ -2,7 +2,6 @@
<!-- Copyright 2023 Dixmit <!-- Copyright 2023 Dixmit
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo> <odoo>
<record id="view_account_journal_form" model="ir.ui.view"> <record id="view_account_journal_form" model="ir.ui.view">
<field name="name">account.journal.form.inherit</field> <field name="name">account.journal.form.inherit</field>
<field name="model">account.journal</field> <field name="model">account.journal</field>

View File

@ -2,7 +2,6 @@
<!-- Copyright 2023 Dixmit <!-- Copyright 2023 Dixmit
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo> <odoo>
<record model="ir.ui.view" id="account_move_form_view"> <record model="ir.ui.view" id="account_move_form_view">
<field name="name">account.move.form (in account_reconcile_oca)</field> <field name="name">account.move.form (in account_reconcile_oca)</field>
<field name="model">account.move</field> <field name="model">account.move</field>
@ -21,7 +20,4 @@
</div> </div>
</field> </field>
</record> </record>
</odoo> </odoo>

View File

@ -2,7 +2,6 @@
<!-- Copyright 2023 Dixmit <!-- Copyright 2023 Dixmit
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo> <odoo>
<record id="account_move_line_tree_reconcile_view" model="ir.ui.view"> <record id="account_move_line_tree_reconcile_view" model="ir.ui.view">
<field name="name">account.move.line.list.reconcile</field> <field name="name">account.move.line.list.reconcile</field>
<field name="model">account.move.line</field> <field name="model">account.move.line</field>

View File

@ -2,7 +2,6 @@
<!-- Copyright 2024 Dixmit <!-- Copyright 2024 Dixmit
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo> <odoo>
<record model="ir.ui.view" id="res_config_settings_form_view"> <record model="ir.ui.view" id="res_config_settings_form_view">
<field name="model">res.config.settings</field> <field name="model">res.config.settings</field>
<field name="inherit_id" ref="account.res_config_settings_view_form" /> <field name="inherit_id" ref="account.res_config_settings_view_form" />
@ -18,7 +17,4 @@
</block> </block>
</field> </field>
</record> </record>
</odoo> </odoo>