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

Assignee

Ricardo Alexsander Santana

Reporter

Ricardo Alexsander Santana

Labels

None

Tested By

None

Fix versions

Affects versions

Priority

Major
Configure