Merge lp:~acsone-openerp/banking-addons/ba-70-missing-transfer-account into lp:banking-addons

Proposed by Stéphane Bidoul (Acsone)
Status: Merged
Merged at revision: 192
Proposed branch: lp:~acsone-openerp/banking-addons/ba-70-missing-transfer-account
Merge into: lp:banking-addons
Diff against target: 12 lines (+2/-0)
1 file modified
account_banking_payment/model/account_payment.py (+2/-0)
To merge this branch: bzr merge lp:~acsone-openerp/banking-addons/ba-70-missing-transfer-account
Reviewer Review Type Date Requested Status
Holger Brunn (Therp) Approve
Review via email: mp+178560@code.launchpad.net

Description of the change

Transfer account and transfer journal are optional in payment modes. This patch attempts to handle such situations.

To post a comment you must log in.
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Thank you for noticing this. We need to be able to handle this situation, but the question rises: how are your payment orders going to go into state 'done' when you don't use the reconciliation bit of the workflow? Apart from the technical details, it would be interesting to hear about how you actually reconcile the invoices with the amount of the payment order when it appears on the bank statement.

Revision history for this message
Stéphane Bidoul (Acsone) (sbi) wrote :

If there is no transit account, the payment will stay in state "sent" forever, I suppose. Which is similar to the default payment order workflow in OpenERP where the sent state does not exist.

Which makes me think... even without a transit account, one could imagine having the payment workflow (in sent state) listen on a trigger from account.move.line with a test_paid() condition, just like the invoice does to detect it has been paid?

Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Yes, I was wondering about that. That could be the key to integrating c2c's statement modules with account_banking_payment.

So you do the reconciliation manually? Do you get the invoices from the payment order each on their own bank statement line with the correct partner?

Revision history for this message
Stéphane Bidoul (Acsone) (sbi) wrote :

We receive one bank statement line for each payment line from the bank. With SEPA credit transfers in particular, one can choose to have it that way or receive a single statement line per payment order.

The partner can be found quite reliably for each bank statement line since we get the counterparty bank account for each statement line.

Then reconciliation is mostly automatic.

Revision history for this message
Holger Brunn (Therp) (hbrunn) wrote :

Just one nitpick:
#157 remove this one instead of commenting it

review: Approve
180. By Stéphane Bidoul (Acsone)

[MRG] sync with 7.0 head

Revision history for this message
Stéphane Bidoul (Acsone) (sbi) wrote :

This one was out of sync with 7.0 head. I merged so the diff is now clean again.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account_banking_payment/model/account_payment.py'
2--- account_banking_payment/model/account_payment.py 2013-10-02 09:02:54 +0000
3+++ account_banking_payment/model/account_payment.py 2013-10-14 11:19:01 +0000
4@@ -241,6 +241,8 @@
5 'debit': _('Direct debit order'),
6 }
7 for order in self.browse(cr, uid, ids, context=context):
8+ if not order.mode.transfer_journal_id or not order.mode.transfer_account_id:
9+ continue
10 for line in order.line_ids:
11 # basic checks
12 if not line.move_line_id:

Subscribers

People subscribed via source and target branches

to status/vote changes: