Auto-populate company contact error
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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