odoo icon indicating copy to clipboard operation
odoo copied to clipboard

[FIX] web: fix error on creating new record with ref field

Open yelizariev opened this issue 3 years ago • 2 comments

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

yelizariev avatar Nov 15 '22 13:11 yelizariev

Pull request status dashboard

robodoo avatar Nov 15 '22 13:11 robodoo

Also, opw-3073516

yelizariev avatar Nov 18 '22 13:11 yelizariev

The test is added.

Error without any changes:

image

(Infinite loop error is not captured)

yelizariev avatar Nov 21 '22 10:11 yelizariev

@robodoo r+

mcm-odoo avatar Nov 21 '22 13:11 mcm-odoo