diff options
| author | tbe-odoo <tbe@odoo.com> | 2017-08-23 15:51:39 +0200 |
|---|---|---|
| committer | tbe-odoo <tbe@odoo.com> | 2017-08-29 17:11:23 +0200 |
| commit | 194d52e8fda35f7a6fd9a9e5c2e1af265e25ce4b (patch) | |
| tree | 925cb915000cdc0be69848d81a1864e1446ead4a /addons/payment/models | |
| parent | 3c062d934553bc4693bde6bd831fd2a3d6e9423c (diff) | |
[IMP] website_quote/sale,payment: Support of the new payment form
- Online quotation and e-commerce now use the new payment form.
- Added the ability to chose on an acquirer if it uses only form/s2s or both.
(Still need some code cleaning)
Diffstat (limited to 'addons/payment/models')
| -rw-r--r-- | addons/payment/models/payment_acquirer.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/addons/payment/models/payment_acquirer.py b/addons/payment/models/payment_acquirer.py index 325f58c3aff..365e8d14b37 100644 --- a/addons/payment/models/payment_acquirer.py +++ b/addons/payment/models/payment_acquirer.py @@ -151,6 +151,15 @@ class PaymentAcquirer(models.Model): "Use this field anywhere a small image is required.") payment_option_ids = fields.Many2many('payment.option', string='Supported Payment Option') + prefered_payment_type = fields.Selection(selection=[('s2s','Server to server'), + ('form', 'Form'), + ('both', 'Both') + ], default='form', required=True, string='Prefered payment type', help="""Which payment type you wish to use. + - Form: Redirect the user to the payment acquirer website to pay. + - Server to server: The user enter his credit card information on your website and is processed by Odoo. + - Both: Both are displayed to the user. + + Note: Subscriptions does not take this field in account, it uses server to server by default.""") def _search_is_tokenized(self, operator, value): tokenized = self._get_feature_support()['tokenize'] |
