add Validated By User Account Move
This commit is contained in:
@@ -29,6 +29,7 @@ import com.axelor.apps.base.db.Company;
|
||||
import com.axelor.apps.base.db.Partner;
|
||||
import com.axelor.apps.base.db.repo.PartnerRepository;
|
||||
import com.axelor.apps.base.db.repo.PeriodRepository;
|
||||
import com.axelor.auth.AuthUtils;
|
||||
import com.axelor.common.ObjectUtils;
|
||||
import com.axelor.db.JPA;
|
||||
import com.axelor.db.Query;
|
||||
@@ -296,6 +297,7 @@ public class MoveValidateService {
|
||||
} else {
|
||||
move.setStatusSelect(MoveRepository.STATUS_VALIDATED);
|
||||
move.setValidationDate(LocalDate.now());
|
||||
move.setValidatedByUser(AuthUtils.getUser());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,8 @@
|
||||
<boolean name="autoYearClosureMove" title="Year closure move"/>
|
||||
<many-to-many name="batchSet" ref="com.axelor.apps.base.db.Batch" title="Batchs"/>
|
||||
<integer name="functionalOriginSelect" title="Functional origin" readonly="true" selection="iaccount.move.functional.origin.select"/>
|
||||
|
||||
<many-to-one name="validatedByUser" ref="com.axelor.auth.db.User" readonly="true" title="Validated by"/>
|
||||
|
||||
<unique-constraint columns="reference,company"/>
|
||||
|
||||
<extra-code><![CDATA[
|
||||
|
||||
Reference in New Issue
Block a user