Openbravo Issue Tracking System - POS2
View Issue Details
0046703POS2Corepublic2021-05-18 09:542021-05-18 13:59
cberner 
cberner 
immediatemajorhave not tried
closedfixed 
5
 
TAPTAP 
AugustoMauch
2020-10-27
main
No
0046703: If a tab has a field for the id of the entity, it is no longer possible to create a new record in form view
For Application Dictionary generated windows, if a tab has a field for the id of the entity, it is no longer possible to create a new record in form view.

An example of this can be found in the "Coupons on the Fly" module.
- Log in https://livebuilds.openbravo.com/retail_modules_pgsql_pi/, [^] [^] using "White valley group admin" role
- Create a discount in "Discounts and promotion" window of type "Variable Amount Coupons". Make sure to check the flags "Uses coupon codes" and "Is OTF coupon"
- Go to "OTF Coupons generation rules".
- Create a new record in form view. Check the "Is variable coupon" flag. Fill all remaining mandatory fields (select the previously created discount as discount).
- Realise that you cannot save the record, because the following error is shown:

Error
Saving failed. One or more fields contain illegal values, check the errors for each field.

If the definition of the window is changed, and the field for the id is removed, then the record can be saved correctly.
No tags attached.
blocks defect 0046681 closed cberner Openbravo ERP If a tab has a field for the id of the entity, it is no longer possible to create a new record in form view 
Issue History
2021-05-18 09:54cbernerNew Issue
2021-05-18 09:54cbernerAssigned To => cberner
2021-05-18 09:54cbernerRegression date => 2020-10-27
2021-05-18 09:54cbernerRegression introduced in release => main
2021-05-18 09:54cbernerTriggers an Emergency Pack => No
2021-05-18 09:54cbernerRelationship addedblocks 0046681
2021-05-18 09:55cbernerStatusnew => scheduled
2021-05-18 13:59cbernerNote Added: 0128332
2021-05-18 13:59cbernerStatusscheduled => resolved
2021-05-18 13:59cbernerFixed in Version => TAP
2021-05-18 13:59cbernerResolutionopen => fixed
2021-05-18 13:59cbernerReview Assigned To => AugustoMauch
2021-05-18 13:59cbernerStatusresolved => closed

Notes
(0128332)
cberner   
2021-05-18 13:59   
Fixed in merged MR: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/367 [^]