Typeerror: Cannot Read Property 'compid' of Undefined

Avatar

Hi guys, I am facing this problem when i am trying to create a new customer. Tin can you lot please help me right this bug. Thank you in advance

12 Semua Jawaban

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

you should be getting this same error one time for every holding with no generic value inside that class.

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

What is a holding field?

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

Where tin can I ascertain the generic value?

starting time y'all need to know the property you are going define, to know that, become developer mode on that grade and check for fields that begins with 'property', properties are commonly accounts, in res.partner we also have the price-lists.

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

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

nosotros filter for generics and search for it, if at that place is no lines, then thats a problem and we need i.

and so nosotros create 1 with the name:'property_account_receivable', field: Business relationship Receivable, type:many2one, resource:[no value], account.account, and the default business relationship we would desire to put.

Hello.

The solution is:

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

Supplant the lines:

                  if (! no_recurse) {         var dataset = new instance.web.DataSetStatic(this, this.field.relation, cocky.build_context());         this.live(dataset.name_get([self.get("value")])).washed(function(data) {             self.display_value["" + self.become("value")] = data[0][one];             self.render_value(true);         });     }                                  

By:

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

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

This fault occurs in Chrome Browser when you read a belongings or call a method on an undefined object . Uncaught TypeError: Cannot read belongings of undefined mistake is probably easiest to empathise from the perspective of undefined, since undefined is not considered an object type at all (merely its own undefined type instead), and properties tin only vest to objects within JavaScript. In that location are a few variations of this error depending on the property you are trying to admission. Sometimes instead of undefined information technology will say aught.

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

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

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

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

After reproduce the error and so check on your browser developer tools console to encounter the trouble.

For chrome use correct-click and inspect pick and see the console.

Answer by @oscarolar

If using nginx, read this post >>

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

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

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

Delight help.

UPDATE: The outcome is at present stock-still. There was not default account ready 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 admission the Products form and click on Create. Post-obit the instructions I institute 5 property values on production 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 5 property values are defined on settings / parameters / configuration parameters. Whatever idea please?

I am as well getting this same error when creating a new product from the point of sale menu. When I create a new production from anywhere else (similar buy menu) I do not get this error.

It happens for all users for me.

I have tried setting defaults in debug fashion but 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 sale categories (but it recreates it automatically).

crandallcappasay.blogspot.com

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

0 Response to "Typeerror: Cannot Read Property 'compid' of Undefined"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel