İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
1145 Görünümler

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
Vazgeç
Üretici En İyi Yanıt

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
Vazgeç
Üretici

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Eyl 24
2492
0
Tem 24
1053
1
Ağu 24
1015
2
Mar 24
4446
0
Eyl 24
1120