Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0036031Openbravo ERP00. Application dictionarypublic2017-05-18 09:552022-02-01 08:05
aferraz 
Triage Platform Base 
normalminoralways
acknowledgedopen 
30Professional Appliance
 
 
Core
No
0036031: Default value wrongly set in Process Definition parameter
Default value is set to process definition parameter although its value doesn't match with parameter's reference where clause.

If we have the same default value and reference in a standard window field, it will not be set.
- Login as System Admin

- Open "Organization Selector - Transactions allowed" reference.
- Check it has the following where clause:
exists (select 1 from OrganizationType ot where e.organizationType = ot and ot.transactionsAllowed = true) and e.ready = true

- Go to C_Order table ad_org_id column.
- Set previous reference.
- Set following default value: @#AD_Org_ID@

- Go to Aging Balance Process Definition for Payables process definition organization parameter.
- Set previous reference.
- Set following default value: OB.getContext().getCurrentOrganization().id

- Login as F&B Admin, * organization.

- Create a new record in Sales Order window:
Realize "F&B España - Región Norte" is shown as default in Organization field. This is the first valid value in the selector.

- Open Payables Aging Schedule
Realize "*" is shown as default in Organization parameter.
This is the login organization although it is not a valid value in the selector.

As workaround, we can use a Filter Expression as default value in Process Definition parameter and add there the following logic:
- If wanted default value matches with parameter's reference where clause -> retrieve wanted default value
- If not -> retrieve first valid value from parameter's reference where clause.
No tags attached.
related to design defect 0036032 new Triage Platform Base On change functions are not executed when opening a Process Definition 
blocks feature request 0036034 new Triage Omni OMS Improve organization and general ledger parameters default value and on change function inside Aging process definition 
Issue History
2017-05-18 09:55aferrazNew Issue
2017-05-18 09:55aferrazAssigned To => platform
2017-05-18 09:55aferrazModules => Core
2017-05-18 09:55aferrazTriggers an Emergency Pack => No
2017-05-18 10:06aferrazRelationship addedrelated to 0036032
2017-05-18 10:15aferrazRelationship addedblocks 0036034
2017-06-02 11:18alostaleStatusnew => acknowledged
2022-02-01 08:05alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.