Merge lp:~therp-nl/account-banking/5.0-lp1037543-cursor_not_cr into lp:account-banking

Proposed by Stefan Rijnhart (Opener) on 2012-08-16
Status: Needs review
Proposed branch: lp:~therp-nl/account-banking/5.0-lp1037543-cursor_not_cr
Merge into: lp:account-banking
Diff against target: 21 lines (+2/-2)
1 file modified
account_banking/account_banking.py (+2/-2)
To merge this branch: bzr merge lp:~therp-nl/account-banking/5.0-lp1037543-cursor_not_cr
Reviewer Review Type Date Requested Status
Pieter J. Kersten (EduSense BV) 2012-08-16 Pending
Review via email: mp+119908@code.launchpad.net
To post a comment you must log in.

Unmerged revisions

68. By Stefan Rijnhart (Opener) on 2012-08-16

[FIX] Refer to 'cursor' instead of unknown 'cr'

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account_banking/account_banking.py'
2--- account_banking/account_banking.py 2011-11-08 13:10:34 +0000
3+++ account_banking/account_banking.py 2012-08-16 12:23:22 +0000
4@@ -375,7 +375,7 @@
5 company_currency_id, move.amount, context=context,
6 account=acc_cur)
7 if st.currency.id != company_currency_id:
8- amount_cur = res_currency_obj.compute(cr, uid, company_currency_id,
9+ amount_cur = res_currency_obj.compute(cursor, uid, company_currency_id,
10 st.currency.id, amount, context=context,
11 account=acc_cur)
12 val['amount_currency'] = -amount_cur
13@@ -460,7 +460,7 @@
14 ## We need to make a partial reconciliation
15 ## To add this amount to previous paid amount
16 if previous_partial:
17- account_move_line_obj.reconcile_partial(cr, uid, torec, 'statement', context)
18+ account_move_line_obj.reconcile_partial(cursor, uid, torec, 'statement', context)
19 ## If it's the first reconciliation, we do a full reconciliation as regular
20 else:
21 account_move_line_obj.reconcile(

Subscribers

People subscribed via source and target branches