public AccountingSituation createAccountingSituation(Company company) throws AxelorException { AccountConfig accountConfig = accountConfigService.getAccountConfig(company); AccountingSituation accountingSituation = new AccountingSituation(); accountingSituation.setCompany(company); accountingSituation.setCustomerAccount(accountConfigService.getCustomerAccount(accountConfig)); accountingSituation.setSupplierAccount(accountConfigService.getSupplierAccount(accountConfig)); save(accountingSituation); return accountingSituation; }