diff options
| author | Lucas Lefèvre <lul@odoo.com> | 2019-09-09 14:57:04 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-09-10 11:46:01 +0000 |
| commit | 50d2f188f80fd5f13f72b352962ec12e099b8751 (patch) | |
| tree | 09d9fc578e385898cdea8bfad4ab97438d049e33 /addons/website_forum/static/src | |
| parent | 55a4910b2ea196223fff9f8b5d3f90cf21c23cd5 (diff) | |
[FIX] web: Display archive action if active in view
Since ee5e972, "Achive" and "Unarchive" actions are
automatically displayed in the actions dropdown
if the record has an `active` field.
The "Archive" action is shown if `active=True`, and
"Unarchive" otherwise.
However, if the record has the `active` field but
it's not in the view, the form controller think
`active=False` because `undefined` is falsy.
Therefore, the "Unarchive" action is always shown.
If `active` is not in the view, neither "Archive" nor
"Unarchive" should be shown.
closes odoo/odoo#36551
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/website_forum/static/src')
0 files changed, 0 insertions, 0 deletions
