Created on 2022-06-29.22:13:28 by cman, last changed 1 month ago by roundup-bot.
New changeset 7a5fa3a38393 by Chris Chapman in branch '6.4': Add braintree prefix to device_data field name https://hg.tryton.org/modules/account_payment_braintree/rev/7a5fa3a38393 New changeset b1616ebd06fe by Chris Chapman in branch '6.2': Add braintree prefix to device_data field name https://hg.tryton.org/modules/account_payment_braintree/rev/b1616ebd06fe New changeset b35af06d0fe6 by Chris Chapman in branch '6.0': Add braintree prefix to device_data field name https://hg.tryton.org/modules/account_payment_braintree/rev/b35af06d0fe6
New changeset dad54c88b3ad by Cédric Krier in branch 'default': Add braintree prefix to device_data field name https://hg.tryton.org/tryton-env/rev/dad54c88b3ad
New changeset 677d2e8a8b72 by Chris Chapman in branch 'default': Add braintree prefix to device_data field name https://hg.tryton.org/modules/account_payment_braintree/rev/677d2e8a8b72
Yeah, sorry. I was following up with an error that I came across a few weeks ago and was just being lazy, going based on what I remembered. Here's a traceback:
Traceback (most recent call last): File "/home/user/tryton/lib64/python3.9/site-packages/trytond/protocols/wrappers.py", line 193, in wrapper result = func(request, pool, *args, **kwargs) File "/home/user/devel/modules/account_payment_braintree/routes.py", line 52, in checkout record.braintree_set_nonce( File "/home/user/devel/modules/account_payment_braintree/account.py", line 978, in braintree_set_nonce super().braintree_set_nonce(nonce, device_data=device_data) File "/home/user/devel/modules/account_payment_braintree/account.py", line 150, in braintree_set_nonce self.device_data = device_data AttributeError: 'account.payment.braintree.customer' object has no attribute 'device_data'
Could you provide the traceback?
Actually, I think it crashed when I was adding a new card to a customer.
Crashes when creating a new braintree customer because device_data is not found on the Payment model (paraphrased).
messages: + msg77704
|2022-08-08 22:29:28||roundup-bot||set||messages: + msg77648|
nosy: + roundup-bot
status: testing -> resolved
|2022-06-30 00:48:04||ced||set||keyword: + backport|
|2022-06-30 00:43:48||cman||set||messages: + msg77255|
nosy: + ced
title: Fix braintree device_data assignment -> Crashes when creating a new braintree customer
nosy: + reviewbot
|2022-06-29 22:30:09||cman||set||messages: + msg77252|
status: in-progress -> testing