Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
1185 Visualizzazioni

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
Abbandona
Autore Risposta migliore

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
Abbandona
Autore

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

Post correlati Risposte Visualizzazioni Attività
1
set 24
2545
0
lug 24
1094
1
ago 24
1074
2
mar 24
4544
0
set 24
1167