diff options
| author | Laurent Smet <las@openerp.com> | 2018-08-14 14:44:11 +0200 |
|---|---|---|
| committer | qdp-odoo <qdp@odoo.com> | 2018-08-14 14:44:11 +0200 |
| commit | ef42e03b69307a90d67b46ce9858065fd2c1ce1a (patch) | |
| tree | 5958757200dc3b8987384cf469438fff2917632f /addons/payment/models | |
| parent | c8a4f42ef8d2d03083471370244a8bf3855d9d76 (diff) | |
[IMP] sale: add reference on SO + improve usability
Like invoices, a reference is now computed on sales orders.
The configuration of such reference is done through the Wire Transfer acquirer.
The usability of the communication feature (on invoices/SO) has been a bit improved to be more clear.
Was task: 1870121
Was PR #26152
Diffstat (limited to 'addons/payment/models')
| -rw-r--r-- | addons/payment/models/payment_acquirer.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/payment/models/payment_acquirer.py b/addons/payment/models/payment_acquirer.py index b864e4873b3..013af29d764 100644 --- a/addons/payment/models/payment_acquirer.py +++ b/addons/payment/models/payment_acquirer.py @@ -640,13 +640,13 @@ class PaymentTransaction(models.Model): def _get_payment_transaction_sent_message(self): self.ensure_one() if self.payment_token_id: - message = _('A transaction %s with %s has been initiated using %s credit card.') + message = _('A transaction %s with %s initiated using %s credit card.') message_vals = (self.reference, self.acquirer_id.name, self.payment_token_id.name) elif self.provider in ('manual', 'transfer'): message = _('The customer has selected %s to pay this document.') message_vals = (self.acquirer_id.name) else: - message = _('A transaction %s with %s has been initiated.') + message = _('A transaction %s with %s initiated.') message_vals = (self.reference, self.acquirer_id.name) if self.provider not in ('manual', 'transfer'): message += ' ' + _('Waiting for payment confirmation...') |
