Browse Source

[fix] AttributeError: 'NoneType' object has no attribute 'get'

pull/7/merge
Lorenzo Battistini 11 years ago
parent
commit
e461e32711
  1. 2
      account_report_alt/wizard/account_report_common.py

2
account_report_alt/wizard/account_report_common.py

@ -45,6 +45,8 @@ class account_common_report(osv.osv_memory):
}
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False):
if context is None:
context = {}
res = super(account_common_report, self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar, submenu=False)
if context.get('active_model', False) == 'account.account' and view_id:
doc = etree.XML(res['arch'])

Loading…
Cancel
Save