product_historical_margin: error when clicking on a line in the result tree

Bug #1065850 reported by Alexandre Fayolle - camptocamp
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Financial controlling and costing
New
Undecided
Unassigned

Bug Description

steps to reproduce:

1. select one or more products
2. click on "Margin Details" (in the actions column)
3. select an invoice line in the resulting tree

you get a crash:

Client Traceback (most recent call last):
File "/srv/openerp/instances/openerp_test_alpesdeveloppement/src/webclient/addons/web/common/http.py", line 180, in dispatch
response["result"] = method(controller, self, **self.params)
File "/srv/openerp/instances/openerp_test_alpesdeveloppement/src/webclient/addons/web/controllers/main.py", line 1209, in load
return self.fields_view_get(req, model, view_id, view_type, toolbar=toolbar)
File "/srv/openerp/instances/openerp_test_alpesdeveloppement/src/webclient/addons/web/controllers/main.py", line 1090, in fields_view_get
context = req.session.eval_context(req.context)
File "/srv/openerp/instances/openerp_test_alpesdeveloppement/src/webclient/addons/web/common/session.py", line 196, in eval_context
return ccontext.evaluate(ctx)
File "/srv/openerp/instances/openerp_test_alpesdeveloppement/src/webclient/addons/web/common/nonliterals.py", line 267, in evaluate
final_context.update(context_to_eval.evaluate(ctx))
File "/srv/openerp/instances/openerp_test_alpesdeveloppement/src/webclient/addons/web/common/nonliterals.py", line 267, in evaluate
final_context.update(context_to_eval.evaluate(ctx))
File "/srv/openerp/instances/openerp_test_alpesdeveloppement/src/webclient/addons/web/common/nonliterals.py", line 185, in evaluate
return eval(self.get_context_string(), SuperDict(ctx))
File "<string>", line 1, in <module>
File "/srv/openerp/instances/openerp_test_alpesdeveloppement/src/webclient/addons/web/common/nonliterals.py", line 194, in __getattr__
raise AttributeError(name)
AttributeError: type

Revision history for this message
Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c) wrote :

This bug is caused by lp:1065568 and there is no obvious workaround.

Revision history for this message
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote :

Move bug to follow module branch migration

affects: c2c-addons → margin-analysis
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.