info window doesnt have implemented right click contextual menu.
1. implement regular contextual menu
2. implement value preferences
I've tested it with additional patch and works fine (without last patch old value preferences was not loaded in info window processes).
combine all to one patch to easy apply
bringing chat from IRC:
<CarlosRuiz> hieplq, I integrated
<CarlosRuiz> tested with InfoProduct - set a value preference for warehouse (also tested with SKU)
<CarlosRuiz> opened info window again but the value preference is not shown
<hieplq> wait me point it .
<CarlosRuiz> ah - but a value preference is to set a default value for user - and if there is a default set by dictionary - the default dict must prevail
<hieplq> comment out line it will ok with other !Util.isEmpty(mField.getVO().DefaultValue, true)
<CarlosRuiz> which class?
<hieplq> it in infowindow
<hieplq> this purpose of this line is void default value type set to field. without this line, all number field will load with 0 (want null)
<hieplq> for test you can comment out this code. i will make a complete patch for it at tomorro
<CarlosRuiz> ok - will comment on ticket
preference don't work with field without default value is fix at experiental repository.
just remove condition !Util.isEmpty(mField.getVO().DefaultValue, true)
Open Business Partner Info from Sales Order and set the value preference as XXX in the name Field for SuperUser. Then open the Business Partner Info from Invoice (Customer) and set the value preference as YYY for field Name. Logout and re login, Values are still there as expected.
Login as GardenAdmin and did the whole process again.
The result was that both users have the value preferences that were set as expected.
I see no problem in this ticket