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


Hello,

1)I want to call controller method of one custom module in another controller of second custom module.

Question:

I have two custom module in that created controllers. In First custom module controller contain method that method i want use in second custom module controller.

E.g: First custom module:

method:

def validate_token(func)

class : class APIController(http.Controller)

Second custom module:

method: def createcustomer(self,**kw):

class: class customer(http.Controller)

I want to use validate_token method in createcustomer method.

I know that how to create web controllers but I have no idea about how to call one controller method into other controller of other module


아바타
취소
베스트 답변

Hi,

Try to follow the last section of the following blog which explain the use of one controller method in other

Web Controllers in Odoo

Regards 

아바타
취소
관련 게시물 답글 화면 활동
0
5월 22
1997
2
12월 19
3747
1
11월 22
7361
0
8월 20
4583
4
8월 20
9294