Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012219Openbravo ERPB. User interfacepublic2010-02-10 21:482010-02-10 21:58
dbaz 
dbaz 
urgentmajoralways
closedfixed 
20Kubuntu 8.10
2.40 
 
Core
No
0012219: Product selector is blocked when a search is done with any warehouse
In Purchase Invoice > Lines, when product selector is opened, shows all products. However, if client has no warehouses (nothing is shown in Warehouse combo at the selector), and try to do a search in the selector, it is blocked and nothing is search.

A Javascript error is shown in firebug:

Index or size is negative or greater than the allowed amount" code: "1
blurGrid()windowKeyboard.js (línea 89)
cursorFocus(img#buttonProduct.FieldButton_Icon blank.gif, "onmousedown")windowKeyboard.js (línea 13)
mouseDownLogic(mousedown clientX=462, clientY=260, img#buttonProduct.FieldButton_Icon blank.gif)
    Create a new Client in General Setup > Client > Initial Client Setup.
Create a new Organization in General Setup > Enterprise > Initial Organization Setup (select it as Legal with accounting).
Go to General Setup > Enterprise > Organization and select "Allow period control" and select a calendar.
Run "Set as ready" process.
Go to Financial Management > Accounting > Setup > Fiscal calendar > Period.
Create a new record (IE 2009) and run "Create periods" process.
Go to Financial Management > Accounting > Transactions > Open/close periods.
Select the Organization, year, and Dec-09, and as action Period open. Save it and process it.
Create (it does not matter their values) a Business Partner Category, a Business Partner (including an Address), a Product Category, a Product, a Tax Category, a Purchase Price list, a Payment Term.
Create a Purchase Invoice (if some required information is not filled, just create it).
Go to its Lines, and open product Selector.
All product are shown (notice that no warehouse is set in the filter).
In name filter, set %a% and search.
A javascript error is shown and nothing is returned.
No tags attached.
related to defect 00113342.50MP11 closed dbaz Product selector is blocked when a search is done with any warehouse 
Issue History
2010-02-10 21:48dbazNew Issue
2010-02-10 21:48dbazAssigned To => dbaz
2010-02-10 21:49hgbotCheckin
2010-02-10 21:49hgbotNote Added: 0024140
2010-02-10 21:49hgbotStatusnew => resolved
2010-02-10 21:49hgbotResolutionopen => fixed
2010-02-10 21:49hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.40/rev/4e62d8ebc334052030cdda725cc13620f86f9c9b [^]
2010-02-10 21:57dbazStatusresolved => new
2010-02-10 21:57dbazResolutionfixed => open
2010-02-10 21:58dbazRelationship addedrelated to 0011334
2010-02-10 21:58dbazStatusnew => scheduled
2010-02-10 21:58dbazfix_in_branch => pi
2010-02-10 21:58dbazStatusscheduled => resolved
2010-02-10 21:58dbazResolutionopen => fixed
2010-02-10 21:58dbazStatusresolved => closed

Notes
(0024140)
hgbot   
2010-02-10 21:49   
Repository: erp/stable/2.40
Changeset: 4e62d8ebc334052030cdda725cc13620f86f9c9b
Author: David Baz Fayos <david.baz <at> openbravo.com>
Date: Wed Feb 10 21:48:08 2010 +0100
URL: http://code.openbravo.com/erp/stable/2.40/rev/4e62d8ebc334052030cdda725cc13620f86f9c9b [^]

Fixed issue 12219: Now no warehouse selector gets blocked

---
M web/js/searchs.js
---