mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[MIG] account_netting: Migration to 17.0
This commit is contained in:
@@ -85,6 +85,7 @@ Contributors
|
||||
- Pedro M. Baeza
|
||||
- Vicent Cubells
|
||||
- Víctor Martínez
|
||||
- Marwan Behillil
|
||||
|
||||
Maintainers
|
||||
-----------
|
||||
|
||||
@@ -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)",
|
||||
|
||||
@@ -2,3 +2,4 @@
|
||||
- Pedro M. Baeza
|
||||
- Vicent Cubells
|
||||
- Víctor Martínez
|
||||
- Marwan Behillil
|
||||
@@ -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
|
||||
|
||||
|
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user