Merge pull request #2551 from expsa/task_12215

fix(exp_transaction_report): Task 12215
This commit is contained in:
FathiaBMExp 2025-03-03 14:15:28 +01:00 committed by GitHub
commit 18007dd1ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 11 deletions

View File

@ -137,17 +137,14 @@ class ReportCloseTransaction(models.AbstractModel):
final_dic, my_key = self.get_value(data, 'pdf')
start_date = data['form']['start_date']
end_date = data['form']['end_date']
if my_key:
return {
'doc_ids': data['ids'],
'doc_model': data['model'],
'date_start': start_date,
'date_end': end_date,
'group_dic': final_dic,
'key': my_key,
}
else:
raise UserError(_("""No data for your selection\n"""))
return {
'doc_ids': data['ids'],
'doc_model': data['model'],
'date_start': start_date,
'date_end': end_date,
'group_dic': final_dic,
'key': my_key,
}
class CloseReportXls(models.AbstractModel):