Skip to content

Comments

[17.0][FIX] account_multicompany_easy_creation: Fix AccessError with POS installed#927

Open
BhaveshHeliconia wants to merge 1 commit intoOCA:17.0from
HeliconiaIO:17.0-fix-account_multicompany_easy_creation
Open

[17.0][FIX] account_multicompany_easy_creation: Fix AccessError with POS installed#927
BhaveshHeliconia wants to merge 1 commit intoOCA:17.0from
HeliconiaIO:17.0-fix-account_multicompany_easy_creation

Conversation

@BhaveshHeliconia
Copy link
Contributor

@BhaveshHeliconia BhaveshHeliconia commented Jan 12, 2026

  • When point_of_sale is installed, loading a chart template triggers the cleanup of default POS payment methods (point_of_sale.models.chart_template._load). If the user running the Easy Creation wizard (e.g., an Account Manager) does not have POS permissions (specifically point_of_sale.group_pos_manager), this fails with an AccessError.

  • This commit adds sudo() to the try_loading call in the wizard. Company creation and COA loading are administrative tasks that should succeed regardless of the user's specific access rights to other installed modules.

@BhaveshHeliconia
Copy link
Contributor Author

@legalsylvain : Here is the test case fix related to this PR (#792).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant