odoo/odoo#133426

Created by JavaScript, Bastien Pierre (ipb)
Merged at b4ed85447096b7e2f114595fcc891dbcdb37cc71

Statuses:

label
odoo-dev:16.0-many2one_switch_readonly-ipb
head
4da89be98da7f31a14293b9de3b0ae2975f32e0a
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

[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