콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

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
2870
0
7월 24
1354
1
8월 24
1308
2
3월 24
4989
0
9월 24
1422