-
-
Notifications
You must be signed in to change notification settings - Fork 532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use bank.payment.line reference in Payment Order Move Lines #418
Conversation
I think this change is a nice improvement for the reconcile of payment lines. Plus it's a very small change, if someone is willing to review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change the module version number, and IMO, we should have:
- Current ref
- Plus payment line number (or the name you suggest).
361cb62
to
9ca66a8
Compare
@pedrobaeza I updated module version. What do you mean by current ref and payment line number? Do you mean |
The code I suggest is: if self.payment_type == 'outbound':
ref = _('Payment order %s') % self.name
else:
ref = _('Debit order %s') % self.name
if bank_lines and len(bank_lines) == 1:
ref += " - " + bank_lines.name |
9ca66a8
to
fc045d4
Compare
@pedrobaeza Ok, good point, I just updated my code. |
fc045d4
to
89a71e7
Compare
@alexis-via @sbidoul what do you think about this? |
Can we merge? |
As this is adding, not replacing, I think it's harmless, so I merge and cherry-pick for v11. |
…nt Order Move Lines (#418)
…nt Order Move Lines (OCA#418)
…nt Order Move Lines (OCA#418)
…nt Order Move Lines (OCA#418)
…nt Order Move Lines (OCA#418)
…nt Order Move Lines (OCA#418)
…nt Order Move Lines (OCA#418)
…nt Order Move Lines (OCA#418)
…nt Order Move Lines (OCA#418)
…nt Order Move Lines (OCA#418)
…nt Order Move Lines (OCA#418)
…nt Order Move Lines (OCA#418)
…nt Order Move Lines (OCA#418)
…nt Order Move Lines (OCA#418)
…nt Order Move Lines (OCA#418)
…nt Order Move Lines (OCA#418)
…nt Order Move Lines (OCA#418)
…nt Order Move Lines (OCA#418)
…nt Order Move Lines (OCA#418)
…nt Order Move Lines (OCA#418)
…nt Order Move Lines (OCA#418)
…nt Order Move Lines (OCA#418)
…nt Order Move Lines (OCA#418)
…nt Order Move Lines (OCA#418)
…nt Order Move Lines (OCA#418)
…nt Order Move Lines (OCA#418)
…nt Order Move Lines (OCA#418)
…nt Order Move Lines (OCA#418)
When closing an account.payment.order the move generated have in the reference field, the name of the payment order.
When payment are not grouped by date it generates a lot of moves that have the same reference and we propose to use instead the bank.payment.line reference in order to differentiate those moves.
We think it makes more sense for reconciling. If several bank.payment.line are groupped in a same move we do not change the previous behaviour.