diff options
| author | nie <nie@odoo.com> | 2021-02-09 10:11:31 +0000 |
|---|---|---|
| committer | nie <nie@odoo.com> | 2021-02-10 12:16:49 +0000 |
| commit | 5a74dc2ca8aadb7d91d9cf7c047065fee3263ece (patch) | |
| tree | 6c242c2357250ad780c1900fa47ff0ca2fd922c2 /addons/web/static/src/scss/notification.scss | |
| parent | 84d668ed3a1ba8ba4f61302dea011c596a07f493 (diff) | |
[FIX] website_form: user dynamic fields without readonly attribute
Steps:
- Install studio, website_form
- Go to Settings > Users & Companies > Users
- Click the Studio icon
- On the top bar, click Website
- Click New Form
- In edition mode, click the first label
- Select Customize > Add an Existing Field
Bug:
Traceback here:
https://github.com/odoo/odoo/blob/3ff00944fe6a439bd5d7bddb846206d3d6cac3a0/addons/website_form/models/models.py#L73
KeyError: 'readonly'
Explanation:
Dynamic selection fields don't declare a 'readonly' attribute:
https://github.com/odoo/odoo/blob/3ff00944fe6a439bd5d7bddb846206d3d6cac3a0/odoo/addons/base/models/res_users.py#L1275-L1282
opw:2449356
closes odoo/odoo#65862
X-original-commit: 70d8ffbbea3db8c46e21494b6913ecb44e3a5b8d
Signed-off-by: backspac <backspac@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/scss/notification.scss')
0 files changed, 0 insertions, 0 deletions
