~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to consumption_calculation/consumption_calculation.py

  • Committer: Quentin THEURET
  • Date: 2011-09-14 08:24:06 UTC
  • mto: This revision was merged to the branch mainline in revision 280.
  • Revision ID: qt@tempo-consulting.fr-20110914082406-00i88ui4jkm1v3vl
UF-388 [FIX] Fixed raising exception issue on unit tests of consumption_calcultion module
UF-404 [ADD] Added the threshold_value module with basics threshold value object

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
        
95
95
        for rac in self.browse(cr, uid, ids, context=context):
96
96
            if not rac.valid_ok:
97
 
                return False
98
 
                #raise osv.except_osv(_('Error'), _('Please check the last checkbox before processing the lines'))
 
97
                raise osv.except_osv(_('Error'), _('Please check the last checkbox before processing the lines'))
99
98
            if rac.created_ok:
100
99
                return {'type': 'ir.actions.close_window'}
101
100