Modify General Ledger report to be printed on landscape if set in wizard.

This commit is contained in:
Fekete Mihai 2014-09-26 09:54:31 +03:00
parent 8dd4c83d9c
commit 57869b9001
1 changed files with 2 additions and 0 deletions

View File

@ -58,6 +58,8 @@ class account_report_general_ledger(osv.osv_memory):
if data['form']['landscape'] is False:
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)