odoo
odoo copied to clipboard
[FIX] web: fix error on creating new record with ref field
STEPS:
- Open
Settings >> External Identifiers - Click
[Create]
Patch in getValue fixes js error:
Caused by: TypeError: Cannot read properties of undefined (reading 'model')
Patch in onWillUpdateProps fixes infinite loop
task-3047190 opw-3056362
Description of the issue/feature this PR addresses:
Current behavior before PR:
Desired behavior after PR is merged:
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Also, opw-3073516
The test is added.
Error without any changes:

(Infinite loop error is not captured)
@robodoo r+
