Browse Source

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

pull/763/head
Stefan Rijnhart 4 years ago
parent
commit
598774c7cb
  1. 4
      account_tax_balance/hooks.py

4
account_tax_balance/hooks.py

@ -20,8 +20,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_refund', 'receivable', 'AND aml.balance >= 0'),
('receivable', '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…
Cancel
Save