Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0050045Openbravo ERPA. Platformpublic2022-08-24 10:472022-08-24 10:53
ignacio_deandres 
Triage Platform Base 
highminoralways
closedduplicate 
5
 
 
Core
No
0050045: Cannot use Property Fields in display logic of a button.
Cannot use Property Fields in display logic of a button.
1. As Sysadmin create a Property field in the sales order window header. For example, with this property: businessPartner.businessPartnerCategory

2. Edit the display logic of the Copy Lines button to use the new property field: @processed@='N' & @C_BP_Group_ID@='B1DD8B371643421C987EF1D5B358D5E9'

3. As Group Admin go to the Sales Order window and note that the view generation fails with this error in the stack trace and see attached the file with the error given in the UI:

Caused by: org.openbravo.base.util.CheckException: Property with C_BP_Group_ID does not exist for entity Order
    at org.openbravo.base.model.Entity.getPropertyByColumnName(Entity.java:591) ~[classes/:?]
    at org.openbravo.client.application.window.OBViewFieldHandler.getFields(OBViewFieldHandler.java:163) ~[classes/:?]
    at jdk.internal.reflect.GeneratedMethodAccessor535.invoke(Unknown Source) ~[?:?]
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
No tags attached.
duplicate of defect 0049187 new Triage Platform Base Is not possible to have a display logic for a button based in a property field 
png error.png (17,462) 2022-08-24 10:47
https://issues.openbravo.com/file_download.php?file_id=17430&type=bug
png
Issue History
2022-08-24 10:47ignacio_deandresNew Issue
2022-08-24 10:47ignacio_deandresAssigned To => Triage Platform Base
2022-08-24 10:47ignacio_deandresFile Added: error.png
2022-08-24 10:47ignacio_deandresModules => Core
2022-08-24 10:47ignacio_deandresTriggers an Emergency Pack => No
2022-08-24 10:50caristuRelationship addedblocks 0049191
2022-08-24 10:53caristuRelationship addedduplicate of 0049187
2022-08-24 10:53caristuStatusnew => closed
2022-08-24 10:53caristuResolutionopen => duplicate
2022-08-24 10:53caristuRelationship deletedblocks 0049191

There are no notes attached to this issue.