mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] splitting of transactions was not actually disabled yet
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
##############################################################################
|
||||
{
|
||||
'name': 'Account Banking',
|
||||
'version': '0.1.102',
|
||||
'version': '0.1.106',
|
||||
'license': 'GPL-3',
|
||||
'author': 'Banking addons community',
|
||||
'website': 'https://launchpad.net/banking-addons',
|
||||
|
||||
@@ -274,6 +274,10 @@ class banking_import_transaction(osv.osv):
|
||||
digits = dp.get_precision('Account')(cr)[1]
|
||||
partial = False
|
||||
|
||||
# Disabled splitting transactions for now
|
||||
# TODO allow splitting in the interactive wizard
|
||||
allow_splitting = False
|
||||
|
||||
# Search invoice on partner
|
||||
if partner_ids:
|
||||
candidates = [
|
||||
@@ -395,11 +399,7 @@ class banking_import_transaction(osv.osv):
|
||||
elif abs(expected) > abs(found):
|
||||
# Partial payment, reuse invoice
|
||||
_cache(move_line, expected - found)
|
||||
elif abs(expected) < abs(found):
|
||||
# Disabled splitting transactions for now
|
||||
# TODO allow splitting in the interactive wizard
|
||||
pass
|
||||
|
||||
elif abs(expected) < abs(found) and allow_splitting:
|
||||
# Possible combined payments, need to split transaction to
|
||||
# verify
|
||||
_cache(move_line)
|
||||
|
||||
Reference in New Issue
Block a user