Crash n 7.0 just due to the presence of trp_report_address in addons path

Bug #1261794 reported by Ronald Portier (Therp)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Therp Addons
Status tracked in 7.0
7.0
New
Undecided
Unassigned

Bug Description

The module trp_report_address monkey patches rml_parse.display_address to put its own function in place. As this function refers to the no longer existing res.partner.address, this causes a crash.

2013-12-17 15:18:52,489 20308 ERROR intervlag70 openerp.tools.safe_eval: Cannot eval "display_address(company.partner_id) or ''"
Traceback (most recent call last):
  File "/home/openeyedev/var/openerp/checkouts/ocb-server-7.0/openerp/tools/safe_eval.py", line 241, in safe_eval
    return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
  File "", line 1, in <module>
  File "/home/openeyedev/var/projects/oe_intervlag70/therp-addons/trp_report_address/report_sxw.py", line 10, in display_address
    return self.pool.get('res.partner.address')._display_address(
AttributeError: 'NoneType' object has no attribute '_display_address'

Related branches

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.