Skip to content

[18.0][FIX] base_user_role: Define users with different names to avoid potential side effects#453

Merged
OCA-git-bot merged 1 commit intoOCA:18.0from
Tecnativa:18.0-fix-base_user_role-tests
Apr 23, 2026
Merged

[18.0][FIX] base_user_role: Define users with different names to avoid potential side effects#453
OCA-git-bot merged 1 commit intoOCA:18.0from
Tecnativa:18.0-fix-base_user_role-tests

Conversation

@victoralmau
Copy link
Copy Markdown
Member

Define users with different names to avoid potential side effects

@Tecnativa

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hi @jcdrubay, @sebalix, @novawish,
some modules you are maintaining are being modified, check this out!

@victoralmau victoralmau marked this pull request as ready for review April 22, 2026 12:41
@amh-mw
Copy link
Copy Markdown
Member

amh-mw commented Apr 22, 2026

Define users with different names to avoid potential side effects

What are the potential side effects? It should be allowed that two users have the same name?

@victoralmau
Copy link
Copy Markdown
Member Author

Define users with different names to avoid potential side effects

What are the potential side effects? It should be allowed that two users have the same name?

Exactly, multiple users with the same name; for example, if you use dms_field (which automatically creates directories), that error would occur, which doesn't happen under normal circumstances.

@amh-mw
Copy link
Copy Markdown
Member

amh-mw commented Apr 22, 2026

Exactly, multiple users with the same name; for example, if you use dms_field (which automatically creates directories), that error would occur, which doesn't happen under normal circumstances.

So at a large company, dms_field doesn't support having two users both named John Smith? It seems pretty dubious to have any part of the file system depend on user-entered names.

@victoralmau
Copy link
Copy Markdown
Member Author

Exactly, multiple users with the same name; for example, if you use dms_field (which automatically creates directories), that error would occur, which doesn't happen under normal circumstances.

So at a large company, dms_field doesn't support having two users both named John Smith? It seems pretty dubious to have any part of the file system depend on user-entered names.

This behavior occurs only if a template is defined that automatically creates a directory (using the partner's name) when a partner is created (something that doesn't happen in a “normal” environment), and the restriction that multiple directories cannot have the same name is imposed by DMS; In any case, the “problem” is clear—do not create multiple users with the same name—and the solution is also clear, in my opinion.

Copy link
Copy Markdown
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is something only for integration tests, so it's not a problem to use other user names there.

/ocabot merge patch

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 18.0-ocabot-merge-pr-453-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 6dfca8f into OCA:18.0 Apr 23, 2026
7 checks passed
@OCA-git-bot
Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 8305274. Thanks a lot for contributing to OCA. ❤️

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants