use of com.axelor.apps.stock.db.StockConfig in project axelor-open-suite by axelor.
the class AppStockServiceImpl method generateStockConfigurations.
@Override
@Transactional
public void generateStockConfigurations() {
List<Company> companies = companyRepo.all().filter("self.stockConfig is null").fetch();
for (Company company : companies) {
StockConfig stockConfig = new StockConfig();
stockConfig.setCompany(company);
stockConfigRepo.save(stockConfig);
}
}
Aggregations