|
@ -86,11 +86,11 @@ class LedgerReportWizard(models.TransientModel): |
|
|
data['ids'] = self.env.context.get('active_ids', []) |
|
|
data['ids'] = self.env.context.get('active_ids', []) |
|
|
data['model'] = self.env.context.get('active_model', 'ir.ui.menu') |
|
|
data['model'] = self.env.context.get('active_model', 'ir.ui.menu') |
|
|
data['form'] = self.read(['date_from', 'date_to', |
|
|
data['form'] = self.read(['date_from', 'date_to', |
|
|
'journal_ids', 'target_move'])[0] |
|
|
|
|
|
|
|
|
'journal_ids', 'target_move'])[0] |
|
|
used_context = self._build_contexts(data) |
|
|
used_context = self._build_contexts(data) |
|
|
data['form']['used_context'] = ( |
|
|
|
|
|
dict(used_context, lang=self.env.context.get('lang', 'en_US')) |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
data['form']['used_context'] = dict( |
|
|
|
|
|
used_context, |
|
|
|
|
|
lang=self.env.context.get('lang', 'en_US')) |
|
|
return self._print_report(data) |
|
|
return self._print_report(data) |
|
|
|
|
|
|
|
|
@api.onchange('date_range_id') |
|
|
@api.onchange('date_range_id') |
|
|