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

Show:
Nicolas Micoud
July 1, 2020, 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

Nicolas Micoud
July 2, 2020, 8:54 AM

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

Assignee

Nicolas Micoud

Reporter

Nicolas Micoud

Labels

None

Tested By

None

Fix versions

Priority

Major
Configure