Browse Source

W0621(redefined-outer-name) 'fields' redefined, name of the arg was

wrong and an argument was missing
pull/29/head
Guewen Baconnier 10 years ago
parent
commit
e81d2ed0ad
  1. 6
      account_journal_report_xls/wizard/print_journal_wizard.py

6
account_journal_report_xls/wizard/print_journal_wizard.py

@ -43,9 +43,11 @@ class account_print_journal_xls(orm.TransientModel):
'group_entries': True,
}
def fields_get(self, cr, uid, fields=None, context=None):
def fields_get(self, cr, uid, allfields=None, context=None,
write_access=True):
res = super(account_print_journal_xls, self).fields_get(
cr, uid, fields, context)
cr, uid, allfields=allfields, context=context,
write_access=write_access)
if context.get('print_by') == 'fiscalyear':
if 'fiscalyear_id' in res:
res['fiscalyear_id']['required'] = True

Loading…
Cancel
Save