changeset 7a5fa3a38393 in modules/account_payment_braintree:6.4
details: 
https://hg.tryton.org/modules/account_payment_braintree?cmd=changeset&node=7a5fa3a38393
description:
        Add braintree prefix to device_data field name

        issue11584
        review419441003
        (grafted from 677d2e8a8b723d509aebb04c01ecab9a39d7d541)
diffstat:

 account.py |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r eba3595fa4f6 -r 7a5fa3a38393 account.py
--- a/account.py        Mon May 02 17:22:59 2022 +0200
+++ b/account.py        Mon Aug 08 22:27:47 2022 +0200
@@ -109,7 +109,7 @@
     braintree_device_data = fields.Char(
         "Braintree Device Data", readonly=True,
         states={
-            'invisible': ~Eval('device_data'),
+            'invisible': ~Eval('braintree_device_data'),
             })
 
     @classmethod
@@ -147,7 +147,7 @@
 
     def braintree_set_nonce(self, nonce, device_data=None):
         self.braintree_nonce = nonce
-        self.device_data = device_data
+        self.braintree_device_data = device_data
         self.save()
 
 

Reply via email to