Tags


@api.onchange('attachments')
def filter_document(self):
self.env.cr.execute("SELECT a.datas_fname FROM ir_attachment a,hr_employee e where a.res_id =3")
self.attachments = self.env.cr.fetchone()[0]
cr.execute('select id from account_invoice  where number =%s',(invnumber,))
        print cr.fetchone()[0]
Advertisements