[14.0][FIX] account_tax_balance: init hook refund confusion
parent
3a017e2d07
commit
dd190e14e6
|
@ -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, "
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue