OCA / server-ux

GNU Affero General Public License v3.0
163 stars 531 forks source link

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

Open lmarion-source opened 2 months ago

lmarion-source commented 2 months ago

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 commented 2 months ago

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

etobella commented 2 months ago

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

lmarion-source commented 2 months ago

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

etobella commented 2 months ago

Also, the commit message is not properly formed

https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst#commit-message

kikopeiro commented 2 months ago

@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 commented 2 months ago

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.