diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-01-03 12:28:52 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-01-03 12:28:52 +0100 |
| commit | 362f0489d07d5bcd3673278e93848d0ea3d177a8 (patch) | |
| tree | ce164613ca633d736bf41c5b3d02b8ee541baa89 /addons/payment/models | |
| parent | a39491d459f7a70af21bce1f45434bab05f1c284 (diff) | |
| parent | fe22a0f9ca92ef0e76bb2f730a2b22da500db5dd (diff) | |
[MERGE] forward port branch 11.0 up to fe22a0f9ca9
Diffstat (limited to 'addons/payment/models')
| -rw-r--r-- | addons/payment/models/payment_acquirer.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/addons/payment/models/payment_acquirer.py b/addons/payment/models/payment_acquirer.py index 7255c3e56a9..d20de8a90df 100644 --- a/addons/payment/models/payment_acquirer.py +++ b/addons/payment/models/payment_acquirer.py @@ -121,7 +121,7 @@ class PaymentAcquirer(models.Model): ('ask', 'Let the customer decide'), ('always', 'Always')], string='Save Cards', default='none', - help="This option allows customers to save their credit card as a payment token and to reuse it for a later purchase." + help="This option allows customers to save their credit card as a payment token and to reuse it for a later purchase. " "If you manage subscriptions (recurring invoicing), you need it to automatically charge the customer when you " "issue an invoice.") token_implemented = fields.Boolean('Saving Card Data supported', compute='_compute_feature_support', search='_search_is_tokenized') @@ -418,14 +418,9 @@ class PaymentAcquirer(models.Model): # TDE FIXME: remove that brol if self.module_id and self.module_state != 'installed': self.module_id.button_immediate_install() - context = dict(self._context, active_id=self.ids[0]) return { - 'view_type': 'form', - 'view_mode': 'form', - 'res_model': 'payment.acquirer', - 'type': 'ir.actions.act_window', - 'res_id': self.ids[0], - 'context': context, + 'type': 'ir.actions.client', + 'tag': 'reload', } class PaymentIcon(models.Model): |
