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

here i faced a problem to call this function. so anyone help me to solve this.

class project(osv.osv):
    _inherit = "project.project"


    def datacall(self,cr,uid,ids,context=None):              

               cr.execute("""  select aaa.id as id from account_analytic_account aaa 

              inner join project_project pp on aaa.id=pp.analytic_account_id where pp.state1!='close' and aaa.date<=now()     order by aaa.id asc""")           

              task_details=cr.dictfetchall();
           

    self.datacall(cr, uid,ids,context)

아바타
취소