New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IMP] base: Add support for private addresses #24573
Conversation
Purpose ======= Add the possibility to create private addresses, only accessible for a subset of users. Specification ============= - Add a new 'Private' partner type - Add a res.groups in base 'Access to Private Addresses' - Add ir.rules for the following behavior: - Every employees/internal users can read non-private addresses - Only users in group_private_addresses can access private addresses - Add in base a simplified form view for private addresses - A HR Officer is automatically granted in group_private_addresses - Use the simplified form view to open the address_home_id form on employees
It would be nice to have a way to restrict access to contacts more granularity, like i.e. if user is or not a follower for the contact, or if the contact belongs to a sales team where the user is member. |
Hi @yajo This could be done by defining a specific ir.rule. This kind of restriction is too specific to be done in a standard release. |
Thanks we need this for our issue: Can you also think about the manager employee relationship? For us we need that only the manager can see the private data of his employees. This manager is not allowed to see addresses of other employees. |
Are there plans to merge this into any stable versions (such as 11.0)? |
We plan to add the new address type ('private', 'Private') on the Selection field. |
@tivisse Sidenote: @dreispt |
Hi @tivisse do you plan to make a backport to v11? |
Dear all, I will backport this commit in 9.0. The work continues on this PR: #24891 |
Bravo! |
With the current code when adding new employees (and add a home_address) do get the type private, but all existing records don't. How would a customer with 300+ employees already added with home_address_id records already created for each employee deal with setting the existing res.partner object to type 'private'? Should he go by all those records and set the type to private? Oh wait you can set the type anywhere ;) It might be handy to be able to set all res.partners linked to an employee record on the address_home_id to type private. Or do this automatically when updating the module during startup or something. |
@jladage I think you can export, change the type to private address and import that contacts |
Purpose
Add the possibility to create private addresses, only accessible for a subset
of users.
Specification
Description of the issue/feature this PR addresses:
Current behavior before PR:
Desired behavior after PR is merged:
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr