summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorLucas Lefèvre <lul@odoo.com>2019-02-25 09:27:08 +0000
committerYannick Tivisse <yti@odoo.com>2019-03-05 08:55:02 +0000
commit120b8768bb5d5f61a66ca539ac49ca8cfe1f37a7 (patch)
tree20efbf425236100b4177ea741e02e3d153bb69a3 /addons/web/static/src
parentd31f3ebade00d67a1e93a055a4addefbb9c83cb2 (diff)
[FIX] mail: Check field exists when computing groups
Steps to reproduce: 1. install `hr_contract_salary` 2. create a contract 3. set or update `hr_responsible_id` on the contract (it creates a `mail.tracking.value`) 4. uninstall `hr_contract_salary` 5. go to the contract form view => traceback `hr_responsible_id` does not exist Before displaying a `mail.tracking.value`, `groups` of the fields are checked to fitler tracking values according to access rights of the user. However if the module that added the field has been uninstalled, the field does not exists anymore. Fix: check if field exists before getting fields groups. If the field does not exists: set groups to `base.group_system` closes odoo/odoo#31398 Signed-off-by: "Yannick Tivisse (yti)" <yti@odoo.com>
Diffstat (limited to 'addons/web/static/src')
0 files changed, 0 insertions, 0 deletions