Skip to Content
Menu
This question has been flagged
1436 Views

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)

Avatar
Discard