Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
688 Vues

when I am installing apps on odoo community it says "The following accounts must be assigned to at least one company: - False"


Avatar
Ignorer
Meilleure réponse

Likely Cause:

Odoo raises ValidationError when a required business rule isn't satisfied. Common triggers include:

  • Missing required fields (like partner, date, or accounts).
  • Domain constraints not met.
  • Business logic enforced via @api.constrains or SQL constraints.

How to Debug:

  1. Enable Developer Mode to get full traceback info.
  2. Check the model involved (e.g., account.move, sale.order).
  3. If the error occurs on confirmation:
    • Use the browser developer tools (F12) → Network tab → inspect the response.
    • Look for logs in your Odoo server terminal; traceback will point to the file and line.
  4. Review any custom modules that override core methods.

Avatar
Ignorer
Meilleure réponse

Hi,


To fix the issue manually, first, activate Developer Mode in Odoo. Then, go to Accounting > Configuration > Chart of Accounts. Create a filter to display accounts with no assigned company by setting the filter to Company = is false. This will show all the accounts that are missing a company assignment. From there, you can edit each account and manually assign the correct company to ensure they are properly linked. Once done, the issue should be resolved, and you can proceed with the installation of the apps.


Hope it helps

Avatar
Ignorer