diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-05-15 20:18:14 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-05-15 20:18:14 +0200 |
| commit | fa8a67ee5ff6b3bdc15d000bfda0c57350e01aa9 (patch) | |
| tree | 13f57e095568fb456803f5d967b9e582eacd933c /addons/payment | |
| parent | 05ef2f24e08a06d586f9dc390878ecd3c069042f (diff) | |
| parent | 5a943390f2abf82883316052ad0eeb601b0194c3 (diff) | |
[MERGE] forward port branch 11.0 up to 5a943390f2a
Diffstat (limited to 'addons/payment')
| -rw-r--r-- | addons/payment/models/payment_acquirer.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/payment/models/payment_acquirer.py b/addons/payment/models/payment_acquirer.py index 2d07a174a7e..abaf9ba0368 100644 --- a/addons/payment/models/payment_acquirer.py +++ b/addons/payment/models/payment_acquirer.py @@ -687,6 +687,10 @@ class PaymentTransaction(models.Model): @api.model def get_next_reference(self, reference): + return self._get_next_reference(reference) + + @api.model + def _get_next_reference(self, reference, acquirer=None): ref_suffix = 1 init_ref = reference while self.env['payment.transaction'].sudo().search_count([('reference', '=', reference)]): |
