In provisions fields first we have to go in .py file (Python file) After that we have to decide where we want delete fields and then write the python code of that field. use below code in .py(python file):
cr.execute('SELECT id FROM account_cashflow_provision_line WHERE origin=%s',
(demand._name + ',' + str(demand.id),))
res=cr.fetchall()
cfpline_ids = [x[0] for x in res]
cfpline_obj.write(cr, uid, cfpline_ids, {'state': 'draft'})
cfpline_obj.unlink(cr, uid, cfpline_ids)
0 Comment(s)