تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
1182 أدوات العرض

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 

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

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

الصورة الرمزية
إهمال
الكاتب

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

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
سبتمبر 24
2542
0
يوليو 24
1093
1
أغسطس 24
1073
2
مارس 24
4540
0
سبتمبر 24
1164