credativ team mailing list archive
-
credativ team
-
Mailing list archive
-
Message #04699
[Merge] lp:~therp-nl/banking-addons/fixes-interactive-branch into lp:~banking-addons-team/banking-addons/6.1-dev
Stefan Rijnhart (Therp) has proposed merging lp:~therp-nl/banking-addons/fixes-interactive-branch into lp:~banking-addons-team/banking-addons/6.1-dev.
Requested reviews:
Banking Addons Team (banking-addons-team)
For more details, see:
https://code.launchpad.net/~therp-nl/banking-addons/fixes-interactive-branch/+merge/93688
--
https://code.launchpad.net/~therp-nl/banking-addons/fixes-interactive-branch/+merge/93688
Your team Banking Addons Team is requested to review the proposed merge of lp:~therp-nl/banking-addons/fixes-interactive-branch into lp:~banking-addons-team/banking-addons/6.1-dev.
=== modified file 'account_banking/banking_import_transaction.py'
--- account_banking/banking_import_transaction.py 2012-02-17 23:36:43 +0000
+++ account_banking/banking_import_transaction.py 2012-02-18 13:31:18 +0000
@@ -486,11 +486,11 @@
line_partial_ids = line_ids[:]
line_ids = []
reconcile_obj.write(
- cr, uid, reconcile_id,
+ cr, uid, reconcile.id,
{ 'line_id': [(6, 0, line_ids)],
'line_partial_ids': [(6, 0, line_partial_ids)],
}, context=context)
- return reconcile_id
+ return reconcile.id
def _do_move_unreconcile(self, cr, uid, move_line_ids, currency, context=None):
"""
@@ -820,18 +820,12 @@
'name': '(write-off) %s' % (
trans.move_line_id.move_id.name or '')
}, context=context)
- writeoff_debit = False
- writeoff_credit = False
- if trans.statement_line_id.amount > 0:
- if trans.residual > 0:
- writeoff_debit = trans.residual
- else:
- writeoff_credit = - trans.residual
+ if trans.residual > 0:
+ writeoff_debit = trans.residual
+ writeoff_credit = False
else:
- if trans.residual > 0:
- writeoff_credit = trans.residual
- else:
- writeoff_debit = - trans.residual
+ writeoff_debit = False
+ writeoff_credit = - trans.residual
vals = {
'name': trans.statement_line_id.name,
'date': trans.statement_line_id.date,
Follow ups