MJournal/MJournalLine : fill mandatory values (if missing) in beforeSave methods

Description

https://groups.google.com/forum/#!topic/idempiere/q6jIKI3tqqM

When done, create a wiki page to collect those mechanisms

Environment

None

Activity

Nicolas Micoud 
July 2, 2020 at 8:54 AM

Wiki page added to collect those mechanisms : https://wiki.idempiere.org/en/Model_Classes_BeforeSave_Rules

Nicolas Micoud 
July 1, 2020 at 1:46 PM

Hi

The PR cannot 'force' AD_Org_ID as the table has AccessLevel = Organization ; and PO.save() check that AD_Org_ID is > 0 before reaching the beforeSave method.

Wondering if something can be done here on ModelADServiceImpl.createData/updateData/createUpdateData before calling the po.save() ?
Or maybe is better to let it as it, and force the request fill the AD_Org_ID value ?

wdyt ?

Thanks,

Nicolas

Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created June 29, 2020 at 8:49 AM
Updated September 4, 2020 at 8:52 PM
Resolved July 1, 2020 at 7:35 PM