[14.0][FIX] account_tax_balance: init hook refund confusion

pull/666/head
Stefan Rijnhart 2021-03-30 15:38:11 +02:00 committed by Pedro M. Baeza
parent 3a017e2d07
commit dd190e14e6
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@
{ {
"name": "Tax Balance", "name": "Tax Balance",
"summary": "Compute tax balances based on date range", "summary": "Compute tax balances based on date range",
"version": "13.0.1.0.1", "version": "13.0.1.0.2",
"category": "Invoices & Payments", "category": "Invoices & Payments",
"website": "https://github.com/OCA/account-financial-reporting", "website": "https://github.com/OCA/account-financial-reporting",
"author": "Agile Business Group, Therp BV, Tecnativa, ACSONE SA/NV, " "author": "Agile Business Group, Therp BV, Tecnativa, ACSONE SA/NV, "

View File

@ -19,8 +19,8 @@ def pre_init_hook(cr):
("liquidity", "liquidity", False), ("liquidity", "liquidity", False),
("payable", "payable", "AND aml.balance < 0"), ("payable", "payable", "AND aml.balance < 0"),
("payable_refund", "payable", "AND aml.balance >= 0"), ("payable_refund", "payable", "AND aml.balance >= 0"),
("receivable", "receivable", "AND aml.balance < 0"), ("receivable", "receivable", "AND aml.balance > 0"),
("receivable_refund", "receivable", "AND aml.balance >= 0"), ("receivable_refund", "receivable", "AND aml.balance <= 0"),
("other", False, False), ("other", False, False),
] ]
for move_type, internal_type, extra_where in MAPPING: for move_type, internal_type, extra_where in MAPPING: