[MIG] account_netting: Migration to 17.0

This commit is contained in:
Marwan
2024-05-16 13:59:38 +02:00
parent 59d59f552d
commit c3c4a39a29
7 changed files with 7 additions and 6 deletions

View File

@@ -85,6 +85,7 @@ Contributors
- Pedro M. Baeza
- Vicent Cubells
- Víctor Martínez
- Marwan Behillil
Maintainers
-----------

View File

@@ -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)",

View File

@@ -2,3 +2,4 @@
- Pedro M. Baeza
- Vicent Cubells
- Víctor Martínez
- Marwan Behillil

View File

@@ -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
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 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
3 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

View File

@@ -427,6 +427,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
<li>Pedro M. Baeza</li>
<li>Vicent Cubells</li>
<li>Víctor Martínez</li>
<li>Marwan Behillil</li>
</ul>
</li>
</ul>

View File

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

View File

@@ -21,10 +21,7 @@
<field name="company_currency_id" invisible="1" />
<field name="partner_id" />
<field name="balance" />
<field
name="balance_type"
attrs="{'invisible': [('balance', '=', 0)]}"
/>
<field name="balance_type" invisible="balance == 0" />
<field name="journal_id" />
</group>
<footer>