Context problems

52 views
Skip to first unread message

Alan Lescano

unread,
Jun 12, 2015, 1:21:59 PM6/12/15
to idem...@googlegroups.com
Hello community,

Sometimes I have serious problems related to context, and I'd like to know if someone else is having this kind of problem.

For instance:
Env.getContextAsInt(ctx, WindowNo, "M_PriceList_Version_ID");
may bring me an incorrect price list version, specially if I have 2 different orders (with different price lists) simultaneously opened in a single session. It is very difficult to reproduce, but it happens some times. And it also happens in different situations related to context.

I'm using version 2.1 plus own plugins.

Alan

Alan Lescano

unread,
Jun 12, 2015, 2:27:44 PM6/12/15
to idem...@googlegroups.com
ok, got the problem. It is reproductible in 2.1 (demo.globalqss.com) and development (demo.idempiere.com)

I'm really concerned about this kind of bug. Another example: a recent topic about inventory/deadlock.

Noticed that when you set a context variable to a window, and then you search for another record using the same window, that setted variable (related to previous record) stays there. And it shouldn't.

How to reproduce:
1) Open sales order 80009 and add a line with product Elm Tree
2) Go back to main tab, search (toolbar icon) for sales order 80010 and try to add product Elm Tree. Price is incorrect.

or in other words:
1) Create sales order A (price list X)
2) Create sales order B (price list Z)
1) Open sales order A and add a line with product Elm Tree
2) Go back to main tab, search (toolbar icon) for sales order B and try to add product Elm Tree. Price is incorrect (getting from price list X of sales order A!

I opened jira:

Thanks
Reply all
Reply to author
Forward
0 new messages