Runtime Error Cannot Read Property 'call' of Undefined

Avatar

Hullo guys, I am facing this problem when i am trying to create a new client. Can y'all please help me correct this issues. Thanks in accelerate

12 Answers

This mistake is because at that place is a property field in that model, on that form that doesn't take his generic value divers, probably someone delete it.

you should be getting this same error once for every property with no generic value inside that grade.

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

What is a property field?

https://accounts.openerp.com/forum/Assist-ane/question/24622/

Where tin can I define the generic value?

first you need to know the property y'all are going define, to know that, go developer mode on that course and bank check for fields that begins with 'property', properties are usually accounts, in res.partner we also have the cost-lists.

so lets say for example our property is 'property_account_receivable' from the partner object, which is a many2one field to the object account.account

now we get to settings --> parameters --> configuration parameters

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

then we create i with the name:'property_account_receivable', field: Business relationship Receivable, blazon:many2one, resource:[no value], account.account, and the default account we would want to put.

Hi.

The solution is:

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

Supplant the lines:

                  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(part(data) {             self.display_value["" + cocky.go("value")] = data[0][1];             cocky.render_value(true);         });     }                                  

Past:

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

Usually this error comes when y'all try to pass an non existing id to a many2many/many2one field.

This error occurs in Chrome Browser when you read a property or telephone call a method on an undefined object . Uncaught TypeError: Cannot read property of undefined fault is probably easiest to sympathize from the perspective of undefined, since undefined is non considered an object type at all (only its ain undefined blazon instead), and properties tin only vest to objects within JavaScript. There are a few variations of this mistake depending on the holding you are trying to access. Sometimes instead of undefined it will say null.

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

You could get the real reason with a small js print to debug.

Go to \addons/web/static/src/js/view_form.js#L533  and add the post-obit lines:

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

Afterward reproduce the fault and then check on your browser programmer tools panel to encounter the problem.

For chrome apply right-click and inspect option and see the panel.

Answer by @oscarolar

If using nginx, read this post >>

http://www.developpez.net/forums/d1498867/logiciels/solutions-d-entreprise/erp/odoo-ex-openerp/v8-importation-csv-mistake-cannot-read-property-1-of-undefined/

I am getting this fault when trying to add together a customer invoice. The error appears when I endeavour to add an invoice line, information technology gives this error and does not allow me to add an invoice line.

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

Please help.

UPDATE: The issue is at present stock-still. At that place was non default account fix for the generic properties of receivable, payable, expense and income accounts. Thanks so much for your help.

This is happening also with my when I admission the Products form and click on Create. Following the instructions I plant 5 holding values on production course: 3 for stock counter parts (property_stock_procurement, property_stock_production and property_stock_inventory) and 2 for bookkeeping (property_account_income and property_account_expense). All v property values are defined on settings / parameters / configuration parameters. Any idea please?

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

It happens for all users for me.

I take tried setting defaults in debug style only that doesn't seem to discover this 'undefined ' field.

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

bledsoepide1953.blogspot.com

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

0 Response to "Runtime Error Cannot Read Property 'call' of Undefined"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel