summaryrefslogtreecommitdiff
path: root/addons/payment_authorize/models
diff options
context:
space:
mode:
authorAdrian Torres <adt@odoo.com>2018-09-24 12:22:45 +0200
committerAdrian Torres <adt@odoo.com>2018-09-27 12:10:23 +0200
commit3f4f77fd9d5c79c21665fa08d703bba7571decd8 (patch)
treecb4c161d09ead94255ea40e545ed5225ab113a8a /addons/payment_authorize/models
parent52a8ed3c0c72b21baf589bc9b91a030d9da661a8 (diff)
[REF] *: adapt code to new related default behaviour
This commit adapts the business code to changes introduced by the parent commit in order to keep the same behaviour as before. All readonly=False fields will have to be checked afterwards to confirm that the business case requires write access to the source field.
Diffstat (limited to 'addons/payment_authorize/models')
-rw-r--r--addons/payment_authorize/models/payment.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/payment_authorize/models/payment.py b/addons/payment_authorize/models/payment.py
index 2cb98f74b24..c1380db1fd6 100644
--- a/addons/payment_authorize/models/payment.py
+++ b/addons/payment_authorize/models/payment.py
@@ -343,8 +343,8 @@ class PaymentToken(models.Model):
authorize_profile = fields.Char(string='Authorize.net Profile ID', help='This contains the unique reference '
'for this partner/payment token combination in the Authorize.net backend')
- provider = fields.Selection(string='Provider', related='acquirer_id.provider')
- save_token = fields.Selection(string='Save Cards', related='acquirer_id.save_token')
+ provider = fields.Selection(string='Provider', related='acquirer_id.provider', readonly=False)
+ save_token = fields.Selection(string='Save Cards', related='acquirer_id.save_token', readonly=False)
@api.model
def authorize_create(self, values):