Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSminoralways2017-03-10 14:292017-06-29 15:19
Reportergorka_gilView Statuspublic 
Assigned Togorka_gil 
PrioritynormalResolutionfixedFixed in VersionRR17Q3
StatusclosedFix in branchFixed in SCM revision73887d0c8cff
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned ToSandrahuguet
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo

0035485: Doing login in a multiprice list terminal with remote configured, do a product query without filters that is not needed

DescriptionWhen doing login in the web pos should not be needed to do any search of products, especially in remote mode that should not do any background query not needed to increase server load.

Also after the fix of issue 35383, the empty query of products is not allowed in remote configurations, so this makes some selenium tests to fail.
Steps To Reproduce- Configure remote: [^]
- Login in a multiprice list terminal (for example: MPL1)
http://localhost:8080/openbravo/web/org.openbravo.retail.posterminal/?terminal=MPL1 [^]
- In the developers tolls of chrome in network tab can be seen a request like this on login:
http://localhost:8080/openbravo/[...] [^]
Proposed SolutionOn login, it is created a new ticket.
If is a multiprice list terminal, this new trigger launch an event price list change.
This triggers a new search, and since is just after login is a search with empty values.

The proposed fix, is in the event of search, check if is remote and if so don't do the search. And do a clear of search, to ensure that don't remains old data.

Other approach could be to also don't do the search in local, but this would break the functionality in local since the empty search is allowed in local.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0035383 closedgorka_gil Magnifying glass in product search should be disabled in remote mode if no filter is applied 
related to defect 0035945 closedjorge-garcia Extra Product requests done using Multipricelist functionality 
has duplicate defect 0031561 closedRetail When multi price list is set an extra product action search is done 

-  Notes
gorka_gil (administrator)
2017-06-19 18:38

Fixed in the issue [^]

Now in the change price list event checks if we are in remote, and if so don't execute the search.

This is the diff of the change: [^]

[ is a part of this commit [^] ]
Sandrahuguet (developer)
2017-06-21 17:42

The fix is not working for all cases:
-Enable all remote preferences
-Login in the webPOS using MPL1 terminal
-Search by "avalanche"
-Change the business partner to "Mara Palliot" , notice that the search is cleaned and in normal mode the search is done again
hgbot (developer)
2017-06-27 10:51

Repository: erp/pmods/
Changeset: 73887d0c8cffe2e3b47d6798c617ff7bcc00fb89
Author: Gorka Gil <gorka.gil <at>>
Date: Thu Jun 22 10:19:44 2017 +0200
URL: [^]

Fixes issue 35485: Doing login in a multiprice list terminal with remote configured, do a product query without filters that is not needed

In the first attempt to fix this issue, in the changePriceList event in remote, it just do a clear of search

In the current attempt it will check if any search filter introduced, if yes will luanch the search,
if no will just do nothing.

For the case of the changePriceList event launched when creating new receipt on login it should avoid the search,
since shouldn't have any search filter

Note: in relation with issue 35383, if less than 3 character in the search, it will do again this no relevant search and will show again
the message to narrow your search

M web/
hgbot (developer)
2017-06-29 11:04

Repository: tools/automation/pi-mobile
Changeset: 5b04c8155d5841a6642aa8bed752da6f65747bcb
Author: Gorka Gil <gorka.gil <at>>
Date: Wed Jun 28 14:03:41 2017 +0200
URL: [^]

Related to issue 35485: Doing login in a multiprice list terminal with remote configured, do a product query without filters that is not needed

Added test to check in MPL in remote:
- Create a ticket doesn't launch a empty search (no possible to check only aproximated, just checking the search results table is empty)
- If a search is already done, change the price list doesn't reset it

A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/highvolume/
Sandrahuguet (developer)
2017-06-29 15:19

reviewed and tested

- Issue History
Date Modified Username Field Change
2017-03-10 14:29 gorka_gil New Issue
2017-03-10 14:29 gorka_gil Assigned To => gorka_gil
2017-03-10 14:29 gorka_gil Triggers an Emergency Pack => No
2017-03-10 14:30 gorka_gil Relationship added related to 0035383
2017-03-10 14:36 gorka_gil Status new => scheduled
2017-06-19 18:30 gorka_gil Relationship added related to 0036276
2017-06-19 18:30 gorka_gil Relationship deleted related to 0036276
2017-06-19 18:38 gorka_gil Note Added: 0097491
2017-06-19 18:38 gorka_gil Status scheduled => resolved
2017-06-19 18:38 gorka_gil Resolution open => fixed
2017-06-19 18:38 gorka_gil Fixed in SCM revision => [^]
2017-06-21 09:25 Sandrahuguet Relationship added has duplicate 0031561
2017-06-21 09:26 Sandrahuguet Review Assigned To => Sandrahuguet
2017-06-21 17:37 Sandrahuguet Relationship added related to 0035945
2017-06-21 17:42 Sandrahuguet Note Added: 0097561
2017-06-21 17:42 Sandrahuguet Status resolved => new
2017-06-21 17:42 Sandrahuguet Resolution fixed => open
2017-06-27 10:51 hgbot Checkin
2017-06-27 10:51 hgbot Note Added: 0097701
2017-06-27 10:51 hgbot Status new => resolved
2017-06-27 10:51 hgbot Resolution open => fixed
2017-06-27 10:51 hgbot Fixed in SCM revision [^] => [^]
2017-06-27 11:59 marvintm Tag Attached: Performance
2017-06-29 11:04 hgbot Checkin
2017-06-29 11:04 hgbot Note Added: 0097753
2017-06-29 15:19 Sandrahuguet Note Added: 0097777
2017-06-29 15:19 Sandrahuguet Status resolved => closed
2017-06-29 15:19 Sandrahuguet Fixed in Version => RR17Q3

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker