banking-addons-team team mailing list archive
-
banking-addons-team team
-
Mailing list archive
-
Message #00406
Re: lp:~camptocamp/banking-addons/bank-statement-reconcile-70-fix-statement-cancel into lp:banking-addons/bank-statement-reconcile-70
In V7.0 it is already the default behavior cancel is called by default so it seems the fix is correct or did I miss a point:
def button_cancel(self, cr, uid, ids, context=None):
done = []
account_move_obj = self.pool.get('account.move')
for st in self.browse(cr, uid, ids, context=context):
if st.state=='draft':
continue
move_ids = []
for line in st.line_ids:
move_ids += [x.id for x in line.move_ids]
account_move_obj.button_cancel(cr, uid, move_ids, context=context)
account_move_obj.unlink(cr, uid, move_ids, context)
done.append(st.id)
return self.write(cr, uid, done, {'state':'draft'}, context=context)
--
https://code.launchpad.net/~camptocamp/banking-addons/bank-statement-reconcile-70-fix-statement-cancel/+merge/147114
Your team Banking Addons Team is subscribed to branch lp:banking-addons/bank-statement-reconcile-70.
References