use of com.axelor.apps.account.db.NotificationItem in project axelor-open-suite by axelor.
the class NotificationController method displayMoveLines.
public void displayMoveLines(ActionRequest request, ActionResponse response) {
try {
Notification notification = request.getContext().asType(Notification.class);
List<Long> moveLineIdList = new ArrayList<Long>();
for (NotificationItem notificationItem : notification.getNotificationItemList()) {
for (MoveLine moveLine : notificationItem.getMove().getMoveLineList()) {
moveLineIdList.add(moveLine.getId());
}
}
response.setView(ActionView.define("MoveLines").model(MoveLine.class.getName()).add("grid", "move-line-grid").add("form", "move-line-form").param("search-filters", "move-line-filters").domain("self.id in (" + Joiner.on(",").join(moveLineIdList) + ")").map());
} catch (Exception e) {
TraceBackService.trace(response, e, ResponseMessageType.ERROR);
}
}
Aggregations