Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0033432Openbravo ERPA. Platformpublic2016-07-05 13:372022-02-01 08:09
NaroaIriarte 
Triage Platform Base 
normalminoralways
acknowledgedopen 
5
 
 
Core
No
0033432: Wrong data can be saved when using fields with display logic.
If there is a field with a display logic, it can occur that sometimes wrong data is saved in some records. If for example there is a field "A" which has a display logic based on another field "B", and the field "A" is displayed when the field "B" is checked. If there is a saved record, you open it to edit it and uncheck the "B" field, you can already see the "A" field and modify it, this is not right. If you save that record, the data of the display logic field will be also stored.
1-Install retail modules.
2- Login the ERP with the System Admin role.
3- Go to modules and sete the "org.openbravo.retail.config" in development.
4-Go to 'Windows, Tabs and Fields' window.
5-Search Assortment window and select the Product tab.
6-Then add new record in Field tab.
  6.1- Name: Stocked.
  6.2- Property: product.stocked
  6.3- Save.
7-Edit Bestseller field.
  7.1- Display Logic: @inp_propertyField_stocked_IsStocked@=true
  7.2- Save.
8-Logout, restat tomcat and compile the app.
9- Login to the ERP as the "The White Valley Goup Admin- The White Valley Group" role.
10- Go to Assortment window an select White Valley Group Product List.
11- Go to Product tab and click on create new product in form view.
12- In the product dropdown select "Alpine skiing backpack 27 L" and save the record.
13- Realize that the bestseller field is shown, because the stocked field is checked.
14- Now, edit the same record and choose "Gift Card Infinite". Realize that the bestseller field is already shown, this is normal because it will not change untill we save, but realize also that you can modify the value of that field.
15- Save the record an realize that the "bestseller" field is no longer shown. But you have been able to modify the data and that is not correct.
Maybe create an event handler to handle the fields in these cases. The value of the display logic field should be a default value defined in the database.
No tags attached.
Issue History
2016-07-05 13:37NaroaIriarteNew Issue
2016-07-05 13:37NaroaIriarteAssigned To => platform
2016-07-05 13:37NaroaIriarteModules => Core
2016-07-05 13:37NaroaIriarteTriggers an Emergency Pack => No
2016-07-06 08:59NaroaIriarteProposed Solution updated
2016-07-08 07:43alostaleStatusnew => acknowledged
2016-07-08 07:43alostaleTypedefect => design defect
2022-02-01 08:09alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.