Checkbox Cannot Read Property 'target' of Undefined

Avatar

Hi guys, I am facing this problem when i am trying to create a new customer. Can y'all delight assistance me correct this bug. Cheers in advance

12 Respuestas

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

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

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

What is a belongings field?

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

Where can I ascertain the generic value?

outset you need to know the property y'all are going ascertain, to know that, get developer mode on that form and cheque for fields that begins with 'belongings', backdrop are commonly accounts, in res.partner we also have 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 account.business relationship

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

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

so we create one with the proper noun:'property_account_receivable', field: Account Receivable, type: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

Replace the lines:

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

Past:

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

Usually this error comes when yous try to pass an not existing id to a many2many/many2one field.

This error occurs in Chrome Browser when you read a holding 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 (but its own undefined blazon instead), and properties can only vest to objects within JavaScript. There are a few variations of this error depending on the belongings you lot are trying to access. Sometimes instead of undefined it will say cypher.

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

You could become the real reason with a pocket-sized js impress to debug.

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

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

Afterwards reproduce the error and then bank check on your browser developer tools panel to encounter the problem.

For chrome employ right-click and inspect option and see the console.

Answer past @oscarolar

If using nginx, read this post >>

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

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

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

Please help.

UPDATE: The issue is now fixed. At that place was not default account set for the generic properties of receivable, payable, expense and income accounts. Thank you lot and then much for your help.

This is happening likewise with my when I access the Products form and click on Create. Following the instructions I constitute v property 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 belongings 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 carte du jour. When I create a new product from anywhere else (like purchase menu) I practise not get this error.

Information technology happens for all users for me.

I accept tried setting defaults in debug mode just that doesn't seem to notice this 'undefined ' field.

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

rayhounce.blogspot.com

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

0 Response to "Checkbox Cannot Read Property 'target' of Undefined"

Enviar um comentário

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel