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

I am trying to duplicate tasks in the project module in Odoo12. I have used the "copy" function that is present in the base module.

This is the below code:

    @api.multi
    def template_override(self, default=None):
        if default is None:
            default = {}
        if not default.get('name'):
            default['name'] =("%s (copy)") % (self.name)       
        project = super(ProjectExtension, self).copy(default)

This works perfectly when there are less amount of tasks that has to be copied. But when many tasks like 190 tasks has to be copied, it takes a long time and fails. It does not complete the process. No errors are shown on the console

아바타
취소

I don't quite understand what are you willing to do exactly.. your function is not good.

To sum up your need: do you want to copy your projest task record? and what does template_override do ?

maybe if you explain more what you want will be helpful.

regards.

관련 게시물 답글 화면 활동
1
11월 24
1369
1
6월 24
1404
1
5월 24
2749
1
3월 24
50
1
10월 21
5546