When an O2M field of MetaFile is used inside an entity, a file added in an existing entity is not uploaded. The file is uploaded only when the entity is created, not when updated.
It works on create and edit mode only if the field is M2M (not with O2M).
M2M field could be used as well, but using an O2M instead of a M2M allows the use of orphanRemoval="true".
Hi,
When an O2M field of MetaFile is used inside an entity, a file added in an existing entity is not uploaded. The file is uploaded only when the entity is created, not when updated. It works on create and edit mode only if the field is M2M (not with O2M).
M2M field could be used as well, but using an O2M instead of a M2M allows the use of orphanRemoval="true".
<?xml version="1.0" encoding="UTF-8"?> <domain-models xmlns="http://axelor.com/xml/ns/domain-models" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://axelor.com/xml/ns/domain-models http://axelor.com/xml/ns/domain-models/domain-models_5.4.xsd">
Thank u
Regards