diff --git a/addons/payment/models/payment_acquirer.py b/addons/payment/models/payment_acquirer.py index 8e0f8345284..9c8402d3d48 100644 --- a/addons/payment/models/payment_acquirer.py +++ b/addons/payment/models/payment_acquirer.py @@ -192,6 +192,11 @@ class PaymentAcquirer(models.Model): image_resize_images(vals) return super(PaymentAcquirer, self).write(vals) + @api.multi + def toggle_website_published(self): + self.write({'website_published': not self.website_published}) + return True + @api.multi def get_form_action_url(self): """ Returns the form action URL, for form-based acquirer implementations. """ @@ -405,6 +410,7 @@ class PaymentTransaction(models.Model): create_date = fields.Datetime('Creation Date', readonly=True) date_validate = fields.Datetime('Validation Date') acquirer_id = fields.Many2one('payment.acquirer', 'Acquirer', required=True) + provider = fields.Selection(string='Provider', related='acquirer_id.provider') type = fields.Selection([ ('server2server', 'Server To Server'), ('form', 'Form'), diff --git a/addons/payment/views/payment_views.xml b/addons/payment/views/payment_views.xml index bf703e89ece..1a3f60e47cb 100644 --- a/addons/payment/views/payment_views.xml +++ b/addons/payment/views/payment_views.xml @@ -30,13 +30,19 @@
+ @@ -141,10 +147,11 @@ + -
- + +
@@ -157,7 +164,8 @@ - + +
@@ -195,13 +203,13 @@ - Payment Acquirers + Payment Methods payment.acquirer form kanban,tree,form

- Click to create a payment acquirer. + Click to create a payment method.

@@ -232,11 +240,11 @@
- - -