Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
1281 มุมมอง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ย. 24
2674
0
ก.ค. 24
1222
1
ส.ค. 24
1166
2
มี.ค. 24
4732
0
ก.ย. 24
1251