summaryrefslogtreecommitdiff
path: root/addons/payment_paypal/models/payment.py
diff options
context:
space:
mode:
authorAdrian Torres <adt@odoo.com>2019-07-10 14:59:37 +0200
committerAdrian Torres <adt@odoo.com>2019-07-17 14:13:12 +0200
commit4b38cc6590abcb58a0ca102a06063eb3db7ac1f4 (patch)
treecfd11739fc6b4c0cb4b23b54cc6badad4bf5c55e /addons/payment_paypal/models/payment.py
parentf6fdde96bddfedf8764cd8a73089e44340d476ae (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_paypal/models/payment.py')
-rw-r--r--addons/payment_paypal/models/payment.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/addons/payment_paypal/models/payment.py b/addons/payment_paypal/models/payment.py
index f83129749a9..66ef80a0882 100644
--- a/addons/payment_paypal/models/payment.py
+++ b/addons/payment_paypal/models/payment.py
@@ -67,7 +67,6 @@ class AcquirerPaypal(models.Model):
'paypal_rest_url': 'https://api.sandbox.paypal.com/v1/oauth2/token',
}
- @api.multi
def paypal_compute_fees(self, amount, currency_id, country_id):
""" Compute paypal fees.
@@ -89,7 +88,6 @@ class AcquirerPaypal(models.Model):
fees = (percentage / 100.0 * amount) + fixed / (1 - percentage / 100.0)
return fees
- @api.multi
def paypal_form_generate_values(self, values):
base_url = self.env['ir.config_parameter'].sudo().get_param('web.base.url')
@@ -117,7 +115,6 @@ class AcquirerPaypal(models.Model):
})
return paypal_tx_values
- @api.multi
def paypal_get_form_action_url(self):
return self._get_paypal_urls(self.environment)['paypal_form_url']
@@ -151,7 +148,6 @@ class TxPaypal(models.Model):
raise ValidationError(error_msg)
return txs[0]
- @api.multi
def _paypal_form_get_invalid_parameters(self, data):
invalid_parameters = []
_logger.info('Received a notification from Paypal with IPN version %s', data.get('notify_version'))
@@ -188,7 +184,6 @@ class TxPaypal(models.Model):
return invalid_parameters
- @api.multi
def _paypal_form_validate(self, data):
status = data.get('payment_status')
res = {