[FIX] account_analytic_analysis: Change the query for the order quantity
bzr revid: stephane@openerp.com-20110426142951-fjvvuqbigpkkxbhd
This commit is contained in:
parent
7582068093
commit
b8519868a8
|
@ -378,6 +378,9 @@ class account_analytic_account(osv.osv):
|
||||||
result = dict.fromkeys(ids, 0)
|
result = dict.fromkeys(ids, 0)
|
||||||
|
|
||||||
for record in self.browse(cr, uid, ids, context=context):
|
for record in self.browse(cr, uid, ids, context=context):
|
||||||
|
if record.quantity == 0.0 and record.quantity_max == 0.0:
|
||||||
|
result[record.id] = 0
|
||||||
|
else:
|
||||||
result[record.id] = int(record.quantity >= record.quantity_max)
|
result[record.id] = int(record.quantity >= record.quantity_max)
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
Loading…
Reference in New Issue