odoo / odoo/docker

Auto-populate company contact error

Open
#260 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dockerfile
Stars
1.2k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

Impacted versions: 12

Steps to reproduce:

  • Clean container
  • Create new DB
  • Install Contacts module
  • Inside Contacts module create new Company contact
  • Type few characters into company name and select one of the suggested company

This error appears:

Uncaught TypeError: Cannot read property 'type' of undefined
https://mydomain.com:8443/web/content/382-6ac400c/web.assets_backend.js:1357
Traceback:
TypeError: Cannot read property 'type' of undefined
at Class._applyChange (https://mydomain.com:8443/web/content/382-6ac400c/web.assets_backend.js:1357:205)
at Object. (https://mydomain.com:8443/web/content/378-30ab706/web.assets_common.js:3751:384)
at Object. (https://mydomain.com:8443/web/content/378-30ab706/web.assets_common.js:802:681)
at fire (https://mydomain.com:8443/web/content/378-30ab706/web.assets_common.js:796:299)
at Object.add [as done] (https://mydomain.com:8443/web/content/378-30ab706/web.assets_common.js:797:467)
at Array. (https://mydomain.com:8443/web/content/378-30ab706/web.assets_common.js:802:649)
at Function.each (https://mydomain.com:8443/web/content/378-30ab706/web.assets_common.js:625:767)
at Object. (https://mydomain.com:8443/web/content/378-30ab706/web.assets_common.js:802:560)
at Function.Deferred (https://mydomain.com:8443/web/content/378-30ab706/web.assets_common.js:803:194)
at Object.then (https://mydomain.com:8443/web/content/378-30ab706/web.assets_common.js:802:525)

If I disable auto-populate feature or I don't click on any suggested Company, the contact is created without any problem.

Same test running odoo from fresh source code pull, gives no errors.

Thanks.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the Contacts module flow in a clean container using Odoo 12: create a company contact, type a few characters, and select a suggested company. Start from the web asset stack trace at _applyChange and compare the container behavior with a fresh source-code checkout. Done means selecting a suggestion no longer raises the TypeError and auto-population still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.