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

[16.0][IMP] server-ux: Add the possibility to disable create/edit from relational fields in form views #944

Open
wants to merge 2 commits into
base: 16.0
Choose a base branch
from

Conversation

lmarion-source
Copy link

@lmarion-source lmarion-source commented Sep 3, 2024

This module allows you to configure models so that you cannot create/edit a new instance/an existing instance
from a relational field on another model

@OCA-git-bot
Copy link
Contributor

Hi @etobella,
some modules you are maintaining are being modified, check this out!

@etobella
Copy link
Member

etobella commented Sep 3, 2024

You edited a lot of files of other modules. And the commit description is not on the right format

@lmarion-source lmarion-source force-pushed the 16.0-base_optional_create_edit branch 2 times, most recently from ffd46fb to f11a369 Compare September 3, 2024 08:56
@lmarion-source lmarion-source changed the title [16.0][IMP] Add the possibility to disable create/edit from relational fields [16.0][IMP] Add the possibility to disable create/edit from relational fields in form views Sep 3, 2024
@lmarion-source
Copy link
Author

@etobella My pre-commit changed some of your files. I removed those changes, they are not relevant.

@etobella
Copy link
Member

etobella commented Sep 3, 2024

@lmarion-source lmarion-source changed the title [16.0][IMP] Add the possibility to disable create/edit from relational fields in form views [16.0][IMP] server-ux: Add the possibility to disable create/edit from relational fields in form views Sep 3, 2024
base_optional_create_edit/models/ir_ui_view.py Outdated Show resolved Hide resolved
base_optional_create_edit/models/ir_ui_view.py Outdated Show resolved Hide resolved
… relational fields in form view

   This module allows you to configure models so that you cannot create/edit a new instance/an existing instance
   from a relational field on another model
@kikopeiro
Copy link
Contributor

@lmarion-source

Excuse me, but to understand it correctly, what does development contribute compared to this other one?

https://github.com/OCA/web/tree/16.0/web_m2x_options

@lmarion-source
Copy link
Author

Hello @kikopeiro ,

m2x_options allows to disable create/edit model by model. In my case, you just have to set a config parameter "avoid_create_edit" to True and this field is disabled for create/edit on all models it appears.

Copy link

@SAnnabelle SAnnabelle left a comment

Choose a reason for hiding this comment

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

Functionally it's correct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants