W0621(redefined-outer-name) 'fields' redefined, name of the arg was
wrong and an argument was missingpull/29/head
parent
0b33330ce0
commit
e81d2ed0ad
|
@ -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…
Reference in New Issue