Merge lp:~factorlibre/sepa-tools/sepa-tools-fix-create-account-moves into lp:sepa-tools/6.1

Proposed by Alberto Garcia (Factor Libre)
Status: Merged
Merged at revision: 8
Proposed branch: lp:~factorlibre/sepa-tools/sepa-tools-fix-create-account-moves
Merge into: lp:sepa-tools/6.1
Diff against target: 31 lines (+10/-0)
2 files modified
account_payment_sepa_credit_transfer/wizard/export_sepa.py (+5/-0)
account_payment_sepa_direct_debit/wizard/export_sdd.py (+5/-0)
To merge this branch: bzr merge lp:~factorlibre/sepa-tools/sepa-tools-fix-create-account-moves
Reviewer Review Type Date Requested Status
Ignacio Ibeas (www.acysos.com) Approve
Review via email: mp+210197@code.launchpad.net

Description of the change

[FIX] Create account moves.

To post a comment you must log in.
Revision history for this message
Ignacio Ibeas (www.acysos.com) (ignacio-acysos) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'account_payment_sepa_credit_transfer/wizard/export_sepa.py'
--- account_payment_sepa_credit_transfer/wizard/export_sepa.py 2014-02-09 15:05:50 +0000
+++ account_payment_sepa_credit_transfer/wizard/export_sepa.py 2014-03-10 12:53:35 +0000
@@ -268,6 +268,11 @@
268 nb_of_transactions_1_6.text = str(transactions_count_1_6)268 nb_of_transactions_1_6.text = str(transactions_count_1_6)
269 control_sum_1_7.text = '%.2f' % amount_control_sum_1_7269 control_sum_1_7.text = '%.2f' % amount_control_sum_1_7
270270
271 # Call set_done in payment.order to make payment account moves when
272 # create_account_moves = 'direct-payment'
273 payment_order_ids = context.get('active_ids', [])
274 self.pool.get('payment.order').set_done(cr, uid, payment_order_ids, context)
275
271 return self.finalize_sepa_file_creation(276 return self.finalize_sepa_file_creation(
272 cr, uid, ids, xml_root, total_amount, transactions_count_1_6,277 cr, uid, ids, xml_root, total_amount, transactions_count_1_6,
273 gen_args, context=context)278 gen_args, context=context)
274279
=== modified file 'account_payment_sepa_direct_debit/wizard/export_sdd.py'
--- account_payment_sepa_direct_debit/wizard/export_sdd.py 2014-02-09 15:05:50 +0000
+++ account_payment_sepa_direct_debit/wizard/export_sdd.py 2014-03-10 12:53:35 +0000
@@ -399,6 +399,11 @@
399 nb_of_transactions_1_6.text = str(transactions_count_1_6)399 nb_of_transactions_1_6.text = str(transactions_count_1_6)
400 control_sum_1_7.text = '%.2f' % amount_control_sum_1_7400 control_sum_1_7.text = '%.2f' % amount_control_sum_1_7
401401
402 # Call set_done in payment.order to make payment account moves when
403 # create_account_moves = 'direct-payment'
404 payment_order_ids = context.get('active_ids', [])
405 self.pool.get('payment.order').set_done(cr, uid, payment_order_ids, context)
406
402 return self.finalize_sepa_file_creation(407 return self.finalize_sepa_file_creation(
403 cr, uid, ids, xml_root, total_amount, transactions_count_1_6,408 cr, uid, ids, xml_root, total_amount, transactions_count_1_6,
404 gen_args, context=context)409 gen_args, context=context)

Subscribers

People subscribed via source and target branches