Blank serial number even when serial number is mandatory

Description

It's possible to save a blank serial number even when serial number is mandatory.

How to reproduce:

  1. Create a new Attribute Set with serial number and check the field Mandatory serial number

  2. Associate this Attribute Set to a product

  3. Create a new Sales Order, and insert this product to a new line

  4. Click at Attribute Set Instance, create a new Instance with 1234 serial number and save

  5. Now click again at Attribute Set Instance and check Edit record, clean the Serial number and click OK, now iDempiere should throw an error, acknowledge the error and cancel the edit

  6. Apparently the change is ignored, because on Sales Order Line you still see the serial number there, but if you click again at Attribute Set Instance you can check that Serial Number is now blank

Attached you can find the fix.

Environment

None

Attachments

1

Activity

Show:
Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

Created September 12, 2017 at 2:37 PM
Updated January 1, 2018 at 12:12 PM
Resolved November 8, 2017 at 6:56 AM