Modify General Ledger report to be printed on landscape if set in wizard.
This commit is contained in:
parent
8dd4c83d9c
commit
57869b9001
|
@ -58,6 +58,8 @@ class account_report_general_ledger(osv.osv_memory):
|
||||||
|
|
||||||
if data['form']['landscape'] is False:
|
if data['form']['landscape'] is False:
|
||||||
data['form'].pop('landscape')
|
data['form'].pop('landscape')
|
||||||
|
else:
|
||||||
|
context['landscape'] = data['form']['landscape']
|
||||||
|
|
||||||
return self.pool['report'].get_action(cr, uid, [], 'account.report_generalledger', data=data, context=context)
|
return self.pool['report'].get_action(cr, uid, [], 'account.report_generalledger', data=data, context=context)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue