Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1223 Lượt xem

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 

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhấ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

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 9 24
2563
0
thg 7 24
1134
1
thg 8 24
1098
2
thg 3 24
4584
0
thg 9 24
1176