Services: fix verification of "Report Grouper" in confirmation of Fractions

This commit is contained in:
Adri?n Bernardi 2019-03-22 16:54:50 -03:00
parent dd53f701af
commit b6b6af3a05

View file

@ -1780,8 +1780,8 @@ class Fraction(ModelSQL, ModelView):
if services:
if (EntryDetailAnalysis.search_count([
('service', 'in', [s.id for s in services]),
('report_grouper', '!=', 0),
]) == 0):
('report_grouper', '=', 0),
]) != 0):
cls.raise_user_error('not_divided')
@classmethod