Add missing test on company
review69001 (transplanted from 6b2d59dfa78ee995d382eb6c5aeef545cddceeb7)
This commit is contained in:
1 parent
87595d6a74
commit
57e4c1a118
1 file changed
+2
-1
+2
-1
@@ -100,12 +100,13 @@ class Forecast(ModelWorkflow, ModelSQL, ModelView):
|
||||
'AND location = %s ' \
|
||||
'AND destination = %s ' \
|
||||
'AND state = \'done\' ' \
|
||||
'AND company = %s '
|
||||
'AND id != %s',
|
||||
(forecast.from_date, forecast.from_date,
|
||||
forecast.to_date, forecast.to_date,
|
||||
forecast.from_date, forecast.to_date,
|
||||
forecast.location.id, forecast.destination.id,
|
||||
forecast.id))
|
||||
forecast.company.id, forecast.id))
|
||||
rowcount = cursor.rowcount
|
||||
if rowcount == -1 or rowcount is None:
|
||||
rowcount = len(cursor.fetchall())
|
||||
|
||||
Reference in new issue
Block a user