diff options
| author | Adrian Torres <adt@odoo.com> | 2019-07-10 14:59:37 +0200 |
|---|---|---|
| committer | Adrian Torres <adt@odoo.com> | 2019-07-17 14:13:12 +0200 |
| commit | 4b38cc6590abcb58a0ca102a06063eb3db7ac1f4 (patch) | |
| tree | cfd11739fc6b4c0cb4b23b54cc6badad4bf5c55e /addons/payment_alipay | |
| parent | f6fdde96bddfedf8764cd8a73089e44340d476ae (diff) | |
[REM] *: calls to @api.multi
Multi is the default api for methods, it is not necessary to explicitly
decorate methods with it, adds clutter and most people use it because
they see that the rest of the code uses it.
Done with `find . -type f -name '*.py' | xargs sed -i '/@api.multi/d'`
Diffstat (limited to 'addons/payment_alipay')
| -rw-r--r-- | addons/payment_alipay/models/payment.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/addons/payment_alipay/models/payment.py b/addons/payment_alipay/models/payment.py index 83783fc0ccb..d1fcf343cb5 100644 --- a/addons/payment_alipay/models/payment.py +++ b/addons/payment_alipay/models/payment.py @@ -43,7 +43,6 @@ class PaymentAcquirer(models.Model): return 'https://mapi.alipay.com/gateway.do' return 'https://openapi.alipaydev.com/gateway.do' - @api.multi def alipay_compute_fees(self, amount, currency_id, country_id): """ Compute alipay fees. @@ -65,7 +64,6 @@ class PaymentAcquirer(models.Model): fees = (percentage / 100.0 * amount + fixed) / (1 - percentage / 100.0) return fees - @api.multi def _build_sign(self, val): # Rearrange parameters in the data set alphabetically data_to_sign = sorted(val.items()) @@ -76,7 +74,6 @@ class PaymentAcquirer(models.Model): data_string += self.alipay_md5_signature_key return md5(data_string.encode('utf-8')).hexdigest() - @api.multi def _get_alipay_tx_values(self, values): base_url = self.env['ir.config_parameter'].sudo().get_param('web.base.url') @@ -108,12 +105,10 @@ class PaymentAcquirer(models.Model): }) return alipay_tx_values - @api.multi def alipay_form_generate_values(self, values): values.update(self._get_alipay_tx_values(values)) return values - @api.multi def alipay_get_form_action_url(self): return self._get_alipay_urls(self.environment) @@ -185,7 +180,6 @@ class PaymentTransaction(models.Model): return txs - @api.multi def _alipay_form_get_invalid_parameters(self, data): invalid_parameters = [] @@ -199,7 +193,6 @@ class PaymentTransaction(models.Model): invalid_parameters.append(('seller_email', data.get('seller_email'), self.acquirer_id.alipay_seller_email)) return invalid_parameters - @api.multi def _alipay_form_validate(self, data): if self.state in ['done']: _logger.info('Alipay: trying to validate an already validated tx (ref %s)', self.reference) |
