Skip to content
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

Apply for several data-models with one System Parameter. #1282

Open
DMarW opened this issue Jan 18, 2024 · 0 comments
Open

Apply for several data-models with one System Parameter. #1282

DMarW opened this issue Jan 18, 2024 · 0 comments

Comments

@DMarW
Copy link

DMarW commented Jan 18, 2024

module: mail_restrict_follower_selection
version: 15.0

Steps to reproduce

  • I want in "all purchase app" to prevent external followers. Here is the System Parameter (Filter) I defined:

    • Key: mail_restrict_follower_selection.domain.purchase.order
    • Value: ["&",["user_ids.active","=",True],["user_ids.share","=",False]]
      • only allow active users of odoo, no portal users.
  • but in the Purchase-App, there are several data models in use:

    • purchase.order
    • purchase.requisition
    • purchase.request
      Screenshot 2024-01-18 at 11 14 28

Current behaviour

  • currently, I have to set such a System-Parameter for each of those data-models individually. All over Odoo, that's quite a lot, and I'm afraid I miss one.
  • Our goal of using your great OCA is: to allow ext. followers only in the helpdesk app, and to prevent them in all other apps.

Expected behaviour

  • I wanted to ask if there is a way to define one System Parameter for all "purchase.*". If in the future, a new data-model is added to purchase, this is covered by the security of your OCA?

Thanks in advance.
Markus

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

No branches or pull requests

1 participant