Uncaught (in Promise) Typeerror: Cannot Read Property

Avatar

Hi guys, I am facing this problem when i am trying to create a new client. Can you delight help me correct this bug. Thanks in advance

12 Answers

This error is because there is a property field in that model, on that form that doesn't have his generic value defined, probably someone delete it.

you lot should be getting this aforementioned error one time for every belongings with no generic value inside that grade.

the model is the object, for instance the partner 'res.partner'

What is a property field?

https://accounts.openerp.com/forum/Help-one/question/24622/

Where can I define the generic value?

first you demand to know the property you are going define, to know that, get developer mode on that form and check for fields that begins with 'holding', properties are normally accounts, in res.partner we also accept the price-lists.

then lets say for instance our property is 'property_account_receivable' from the partner object, which is a many2one field to the object business relationship.business relationship

now nosotros go to settings --> parameters --> configuration parameters

we filter for generics and search for it, if in that location is no lines, and then thats a problem and we demand one.

and so we create one with the proper name:'property_account_receivable', field: Account Receivable, type:many2one, resource:[no value], account.account, and the default account we would want to put.

Hullo.

The solution is:

In the file /addons/web/static/src/js/view_form.js

Supercede the lines:

                  if (! no_recurse) {         var dataset = new example.web.DataSetStatic(this, this.field.relation, cocky.build_context());         this.alive(dataset.name_get([cocky.become("value")])).done(function(data) {             self.display_value["" + self.become("value")] = data[0][1];             cocky.render_value(true);         });     }                                  

By:

                  if (! no_recurse) {         var dataset = new example.web.DataSetStatic(this, this.field.relation, self.build_context());         this.alive(dataset.name_get([self.get("value")])).done(office(data) {             if(typeof information[0] != "undefined" && information[0] != aught && data[0].length > 0){                 self.display_value["" + cocky.get("value")] = data[0][ane];                 cocky.render_value(true);             }             else {                return false;             }         }); }                                  

Commonly this error comes when you attempt to pass an non existing id to a many2many/many2one field.

This error occurs in Chrome Browser when you lot read a belongings or phone call a method on an undefined object . Uncaught TypeError: Cannot read belongings of undefined error is probably easiest to sympathise from the perspective of undefined, since undefined is not considered an object blazon at all (only its own undefined type instead), and backdrop can only belong to objects inside JavaScript. In that location are a few variations of this mistake depending on the holding you lot are trying to admission. Sometimes instead of undefined it will say null.

http://cyberspace-informations.com/js/iq/unerror.htm

Y'all could get the real reason with a small js impress to debug.

Go to \addons/web/static/src/js/view_form.js#L533  and add together the following lines:

                  console.log("FIELDNAME "                  +fieldname);                  console.log(self.fields);

After reproduce the error and then check on your browser developer tools panel to come across the trouble.

For chrome use right-click and audit option and come across the panel.

Answer past @oscarolar

If using nginx, read this post >>

http://world wide web.developpez.net/forums/d1498867/logiciels/solutions-d-entreprise/erp/odoo-ex-openerp/v8-importation-csv-error-cannot-read-holding-1-of-undefined/

I am getting this error when trying to add a client invoice. The error appears when I try to add an invoice line, it gives this fault and does not allow me to add an invoice line.

I checked the belongings fields as suggested and all fields seems to exist there. The system is a fresh install with a custom nautical chart of accounts. Account payable and receivable are bachelor for the customer. Also income and expense accounts are available for the product.

Please help.

UPDATE: The issue is at present fixed. In that location was not default business relationship set for the generic properties of receivable, payable, expense and income accounts. Thank you lot so much for your help.

This is happening also with my when I access the Products form and click on Create. Following the instructions I found five holding values on product class: 3 for stock counter parts (property_stock_procurement, property_stock_production and property_stock_inventory) and 2 for accounting (property_account_income and property_account_expense). All 5 holding values are divers on settings / parameters / configuration parameters. Any idea please?

I am also getting this same error when creating a new product from the point of auction card. When I create a new product from anywhere else (like purchase menu) I do non get this error.

It happens for all users for me.

I have tried setting defaults in debug way merely that doesn't seem to find this 'undefined ' field.

The only thing I might be able to attribute this to is deleting the others category from point of auction categories (only it recreates it automatically).

crispouressee1946.blogspot.com

Source: https://www.odoo.com/forum/help-1/uncaught-typeerror-cannot-read-property-1-of-undefined-28100

0 Response to "Uncaught (in Promise) Typeerror: Cannot Read Property"

Postar um comentário

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel