summaryrefslogtreecommitdiff
path: root/addons/payment_sips
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_sips
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_sips')
-rw-r--r--addons/payment_sips/models/payment.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/addons/payment_sips/models/payment.py b/addons/payment_sips/models/payment.py
index 7d46d56da2b..d4eefabf89c 100644
--- a/addons/payment_sips/models/payment.py
+++ b/addons/payment_sips/models/payment.py
@@ -66,7 +66,6 @@ class AcquirerSips(models.Model):
shasign = sha256((data + key).encode('utf-8'))
return shasign.hexdigest()
- @api.multi
def sips_form_generate_values(self, values):
self.ensure_one()
base_url = self.env['ir.config_parameter'].sudo().get_param('web.base.url')
@@ -107,7 +106,6 @@ class AcquirerSips(models.Model):
sips_tx_values['Seal'] = shasign
return sips_tx_values
- @api.multi
def sips_get_form_action_url(self):
self.ensure_one()
return self.environment == 'prod' and self.sips_prod_url or self.sips_test_url
@@ -165,7 +163,6 @@ class TxSips(models.Model):
raise ValidationError(error_msg)
return payment_tx
- @api.multi
def _sips_form_get_invalid_parameters(self, data):
invalid_parameters = []
@@ -180,7 +177,6 @@ class TxSips(models.Model):
return invalid_parameters
- @api.multi
def _sips_form_validate(self, data):
data = self._sips_data_to_object(data.get('Data'))
status = data.get('responseCode')