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

Hi

I am developing a module that display a lot of pictures. I want to create a thumbnail each time user upload a picture.

How can I trigger automatically a function when the user creates a record (= upload a picture) ?

openerp 6.1

아바타
취소
베스트 답변

You must use the super on create function. This is an example how to use it:

def create(self, cr, uid, vals, context=None):
    res = super(YOUR_CLASSE, self).create(cr, uid, vals, context=context)
    YOUR CODE HERE
    return res
아바타
취소
작성자

That's look more simple than expected ! Thank you very much for your fast answer.

I'm happy you solved your problem....;)

관련 게시물 답글 화면 활동
1
6월 24
4208
5
6월 23
35392
1
12월 23
19232
2
6월 16
3175
3
1월 16
4500