82
82
for line in voucher.line_cr_ids:
83
83
total_allocated += line.amount
86
84
return total_allocated - voucher.amount
89
87
'total_paid': _get_total_paid,
90
88
'total_allocated': _get_total_allocated,
91
89
'ok_to_go': _get_ok_to_go,
94
92
def onchange_ok_to_go(self, cr, uid, ids, ok_to_go, context=None):