CSV Import fail on evaluate column mandatory logic

Description

When importing CSV files, the org.adempiere.impexp.GridTabCSVImporter.preprocessRow() submits the CSV row content to the field.isMandatory() function.

When this code is executed, field have the data of the field on current selected record in the UI, this way, all records isMandatory() will be submited to the logic against the current record and depending on the content of the record being inserted, it will return true for an empty field that should be returned false.

This checking can be safely removed from preprocessing, since when the importer fill the data later, it will be checked again with the correct context.

Environment

None

Assignee

Carlos Ruiz

Reporter

Claudemir Todo Bom

Labels

None

Tested By

None

Time tracking

1h

Components

Affects versions

Priority

Major
Configure