[FIX][RR-443] Fixed filter report in embargo

Merged Matias requested to merge RR-443 into 12.0-stage
Compare and
1 file
+ 2
2
Preferences
File browser
Compare changes
+ 2
2
@@ -43,8 +43,8 @@ class ImpoundNotesReportWizard(models.TransientModel):
('impound_type', '=', self.impound_type),
('impound_novelties_ids.impound_novelties_month', '=', month),
('impound_novelties_ids.impound_novelties_year', '=', year),
'|', ('bank', '=', bank_santa_fe.id),
('bank', '=', False)])
('bank', '=', bank_santa_fe.id) if self.web_transfer or self.web_deposit
else ('bank', 'not in', [bank_santa_fe.id])])
self.impound_ids = impound_obj
def generate_impound_notes_report(self):