From c3c4a39a29a0e37515a2d4411e4ef6e345981a9a Mon Sep 17 00:00:00 2001 From: Marwan Date: Thu, 16 May 2024 13:59:38 +0200 Subject: [PATCH] [MIG] account_netting: Migration to 17.0 --- account_netting/README.rst | 1 + account_netting/__manifest__.py | 2 +- account_netting/readme/CONTRIBUTORS.md | 1 + account_netting/security/ir.model.access.csv | 1 + account_netting/static/description/index.html | 1 + account_netting/wizards/account_move_make_netting.py | 2 +- account_netting/wizards/account_move_make_netting_view.xml | 5 +---- 7 files changed, 7 insertions(+), 6 deletions(-) diff --git a/account_netting/README.rst b/account_netting/README.rst index bb45a4090..c052736ed 100644 --- a/account_netting/README.rst +++ b/account_netting/README.rst @@ -85,6 +85,7 @@ Contributors - Pedro M. Baeza - Vicent Cubells - Víctor Martínez + - Marwan Behillil Maintainers ----------- diff --git a/account_netting/__manifest__.py b/account_netting/__manifest__.py index 5111cbd24..c7ef8e1c8 100644 --- a/account_netting/__manifest__.py +++ b/account_netting/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Account netting", - "version": "16.0.1.0.0", + "version": "17.0.1.0.0", "summary": "Compensate AR/AP accounts from the same partner", "category": "Accounting & Finance", "author": "Tecnativa, Odoo Community Association (OCA)", diff --git a/account_netting/readme/CONTRIBUTORS.md b/account_netting/readme/CONTRIBUTORS.md index 5167061de..0200a1642 100644 --- a/account_netting/readme/CONTRIBUTORS.md +++ b/account_netting/readme/CONTRIBUTORS.md @@ -2,3 +2,4 @@ - Pedro M. Baeza - Vicent Cubells - Víctor Martínez + - Marwan Behillil \ No newline at end of file diff --git a/account_netting/security/ir.model.access.csv b/account_netting/security/ir.model.access.csv index 569589cc9..88d06ccdc 100644 --- a/account_netting/security/ir.model.access.csv +++ b/account_netting/security/ir.model.access.csv @@ -1,2 +1,3 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink access_account_move_make_netting,Full access on account.move.make.netting to accountant grp,model_account_move_make_netting,account.group_account_user,1,1,1,1 +access_account_move_make_netting_manager,Full access on account.move.make.netting to accountant manager grp,model_account_move_make_netting,account.group_account_manager,1,1,1,1 diff --git a/account_netting/static/description/index.html b/account_netting/static/description/index.html index 6dc0e9e35..0f8e50aa5 100644 --- a/account_netting/static/description/index.html +++ b/account_netting/static/description/index.html @@ -427,6 +427,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
  • Pedro M. Baeza
  • Vicent Cubells
  • Víctor Martínez
  • +
  • Marwan Behillil
  • diff --git a/account_netting/wizards/account_move_make_netting.py b/account_netting/wizards/account_move_make_netting.py index ba0404833..ba5e96de1 100644 --- a/account_netting/wizards/account_move_make_netting.py +++ b/account_netting/wizards/account_move_make_netting.py @@ -162,7 +162,7 @@ class AccountMoveMakeNetting(models.TransientModel): # Make reconciliation for move_line in move.line_ids: to_reconcile = move_line + self.move_line_ids.filtered( - lambda x: x.account_id == move_line.account_id + lambda x, move_line=move_line: x.account_id == move_line.account_id ) to_reconcile.reconcile() # Open created move diff --git a/account_netting/wizards/account_move_make_netting_view.xml b/account_netting/wizards/account_move_make_netting_view.xml index 4fc33d818..d1471a49d 100644 --- a/account_netting/wizards/account_move_make_netting_view.xml +++ b/account_netting/wizards/account_move_make_netting_view.xml @@ -21,10 +21,7 @@ - +