Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1137 Zobrazení

Hi i am working on a payment plugin with odoo 16


I am trying to get the partner variable from payment_transaction to populate a dictionnary to get the buyer information but when i call my function all the variable are at false which is the default value for fields. So my question is :

When the payment flow is direct, when are payment_transaction variable populated?


Thanks in advance 

Avatar
Zrušit
Autor Nejlepší odpověď

Added this import :  from odoo.addons.payment.models.payment_transaction import PaymentTransaction


Even without using it in my code i can access the variable.

Work perfectly, but not sure if this was intended

Avatar
Zrušit
Autor

Well i was wrong, i don't know why but adding that made it work for a minute. On a fresh install of odoo it didn't work anymore

Related Posts Odpovědi Zobrazení Aktivita
1
zář 24
2469
0
čvc 24
1047
1
srp 24
1009
2
bře 24
4425
0
zář 24
1104