odoo/odoo#134496

Created by fw-bot
Merged at 0dea623ff5161ab1382ff51f9b568d76b0fbe287

Statuses:

label
odoo-dev:saas-16.2-16.0-many2one_switch_readonly-ipb-P2L8-fw
head
bb7c2500a89d2aa0adc2731e5fdb7dd64889ea97
merged
2 years ago by JavaScript, Florent Dardenne (dafl)
odoo/odoo
16.0 #133426
saas-16.1 #134486
saas-16.2 #134496
saas-16.3 #134549
saas-16.4 #134558
master #134569

[FW][FIX] web: Do not switch to readonly after edition

Remove old code that was useful when the form view had 2 modes (edit/readonly)

TASK ID: 3272520

Description of the issue/feature this PR addresses:
The field Many2one switched to readonly after opening it in a modal and save & close

Current behavior before PR:
The field Many2one switches to readonly

Desired behavior after PR is merged:
The field Many2one doesn't switch to readonly


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #133426