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

Dear all, 

I'm trying to send an invoice to the invoicee via the External API. (using this package: Ang3 php-odoo-api-client) 

How can I know which Models / Methods / Fields to use in order to send this mail, with the invoice? 

I'm trying to find out via various ways: checking the External API docs, searching through the Odoo forum, searching online (tutorials, ..). 
The External API docs don't help. 
Couldn't find a relevant / recent Odoo forum post
Online tutorials, via YouTube videos are mostly done by non native-english speaking people so hard to follow. 

I've found several things about using the wizard programmatically in order to send the mail. 
First composing the message (via the wizard?) and then sending it via an additional API call? 

I'd like to find out for versions 17, 18 and 19. 

Looking for a push in the right direction

Thanking you in advance. 


아바타
취소
베스트 답변

The easiest and fastest way is to review the Odoo logs (setup to surface the API calls) via either your Odoo.sh staging branch, or your own on premise Odoo installation.

See https://www.odoo.com/forum/help-1/how-can-i-see-which-api-calls-are-made-to-learn-what-odoo-is-doing-at-specific-times-183911

You do what you want to do via code via the UI, and monitor what API calls the web client makes at each step.

아바타
취소
관련 게시물 답글 화면 활동
2
1월 19
4611
1
8월 25
970
1
8월 25
1212
2
7월 25
3951
3
7월 25
1274