跳至内容
菜单
此问题已终结

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
9月 24
2516
0
7月 24
1071
1
8月 24
1051
2
3月 24
4494
0
9月 24
1143