diff options
| author | Adrian Torres <adt@odoo.com> | 2018-09-21 13:59:47 +0200 |
|---|---|---|
| committer | Adrian Torres <adt@odoo.com> | 2018-09-27 12:10:23 +0200 |
| commit | 52a8ed3c0c72b21baf589bc9b91a030d9da661a8 (patch) | |
| tree | 68466b55d5e0172f826e4b4842952d3620559c4f /addons/gamification/models/challenge.py | |
| parent | 3c093a8108409f74f0c7ca9770be04896fc149f7 (diff) | |
[IMP] fields: make related fields readonly by default
With this commit, any *explicitly* related fields will be `readonly=True`
by default.
*Implicitly* related fields (i.e. _inherits fields) however will keep the
source field's `readonly` attribute.
The rationales behind this patch are:
* Enforce good practices, as the most common use-case for
related fields is the same as for compute fields: to read data.
* Avoid errors where some user saves a form view which contains
a related field that the user doesn't have write access to.
Diffstat (limited to 'addons/gamification/models/challenge.py')
0 files changed, 0 insertions, 0 deletions
