Zoom on empty "Document Sequence" field opens "AP Payment" document sequence
Description
Open window "Document Type" and create a new entry. Use Zoom on the empty field "Document Sequence". My expectation is to open the window in a blank state. But I am positioned on the entry "AP Payment" instead.
Zoom works as expected in the same window on field "Print Format".
Environment
None
Attachments
1
IDEMPIERE-56.patch
12 Sep, 2011
Activity
Dirk Niemeyer
September 12, 2011 at 1:02 PM
Hi Carlos,
perfectly solved. Thank you!
Regards,
Dirk Niemeyer
Carlos Ruiz
September 12, 2011 at 4:25 AM
Hi Dirk, can you please test the attached patch,
Regards,
Carlos Ruiz
Dirk Niemeyer
September 10, 2011 at 1:17 AM
The difference is that field "Print Format" is column AD_PrintFormat_ID with reference "Table Direct". And "Document Sequence" is column DocNoSequence_ID with reference "Table".
MLookupFactory.getLookup_Table is putting the WHERE clause of the table reference into the zoomQuery of the lookupInfo of the GridFieldVO for field "Document Sequence". And that does return "AD_Sequence.IsTableID='N'" which lead to the strange effect of showing "AP Payment" in the window "Document Sequence".
Open window "Document Type" and create a new entry. Use Zoom on the empty field "Document Sequence". My expectation is to open the window in a blank state. But I am positioned on the entry "AP Payment" instead.
Zoom works as expected in the same window on field "Print Format".