Cannot Start the Application. Typeerror: Cannot Read Property

Avatar

Hello guys, I am facing this problem when i am trying to create a new customer. Can you please help me correct this bug. Thanks in accelerate

12 Answers

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

you should be getting this aforementioned error one time for every property with no generic value inside that form.

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

What is a belongings field?

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

Where can I define the generic value?

first you lot need to know the belongings you are going define, to know that, go developer mode on that course and cheque for fields that begins with 'property', properties are usually accounts, in res.partner we likewise have the cost-lists.

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

at present we go to settings --> parameters --> configuration parameters

we filter for generics and search for information technology, if there is no lines, then thats a problem and we need one.

and then we create one with the proper name:'property_account_receivable', field: Business relationship Receivable, type:many2one, resources:[no value], business relationship.account, and the default business relationship we would want to put.

Hi.

The solution is:

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

Replace the lines:

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

By:

                  if (! no_recurse) {         var dataset = new instance.web.DataSetStatic(this, this.field.relation, self.build_context());         this.alive(dataset.name_get([self.get("value")])).done(role(data) {             if(typeof data[0] != "undefined" && data[0] != null && data[0].length > 0){                 self.display_value["" + self.get("value")] = information[0][1];                 self.render_value(true);             }             else {                return fake;             }         }); }                                  

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

This error occurs in Chrome Browser when you read a property or call a method on an undefined object . Uncaught TypeError: Cannot read property of undefined error is probably easiest to understand from the perspective of undefined, since undefined is not considered an object type at all (only its ain undefined type instead), and properties can merely belong to objects within JavaScript. There are a few variations of this error depending on the property you are trying to access. Sometimes instead of undefined it will say naught.

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

Y'all could get the existent reason with a pocket-sized js print to debug.

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

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

Subsequently reproduce the error and then check on your browser developer tools console to see the problem.

For chrome use correct-click and inspect option and see the panel.

Answer by @oscarolar

If using nginx, read this mail >>

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 error when trying to add together a customer invoice. The error appears when I try to add together an invoice line, information technology gives this error and does not allow me to add an invoice line.

I checked the property fields every bit suggested and all fields seems to be there. The arrangement is a fresh install with a custom chart of accounts. Account payable and receivable are available for the client. Also income and expense accounts are available for the product.

Please assistance.

UPDATE: The outcome is now fixed. In that location was non default account set for the generic properties of receivable, payable, expense and income accounts. Thank you so much for your help.

This is happening likewise with my when I access the Products course and click on Create. Following the instructions I constitute 5 property values on product form: 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 v holding values are defined on settings / parameters / configuration parameters. Whatsoever thought delight?

I am also getting this same error when creating a new product from the bespeak of sale menu. When I create a new product from anywhere else (like buy menu) I practise not go this fault.

It happens for all users for me.

I have tried setting defaults in debug mode but that doesn't seem to detect this 'undefined ' field.

The only thing I might be able to aspect this to is deleting the others category from signal of sale categories (but it recreates information technology automatically).

slaterdialletrem.blogspot.com

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

0 Response to "Cannot Start the Application. Typeerror: Cannot Read Property"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel