Errormessage: "Cannot Read Property 'custom' of Undefined",
Hi guys, I am facing this problem when i am trying to create a new customer. Can yous please help me correct this issues. Thanks in accelerate
12 Semua Jawaban
This fault is because there is a holding field in that model, on that form that doesn't have his generic value defined, probably someone delete it.
yous 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/Aid-ane/question/24622/
Where can I define the generic value?
first yous need to know the property you lot are going define, to know that, get developer mode on that grade and bank check for fields that begins with 'property', properties are ordinarily accounts, in res.partner nosotros also take the toll-lists.
so lets say for case our property is 'property_account_receivable' from the partner object, which is a many2one field to the object business relationship.account
at present we get to settings --> parameters --> configuration parameters
we filter for generics and search for it, if at that place is no lines, then thats a problem and we need one.
then we create one with the name:'property_account_receivable', field: Account Receivable, type:many2one, resources:[no value], account.account, and the default account we would want to put.
Hi.
The solution is:
In the file /addons/spider web/static/src/js/view_form.js
Supercede the lines:
if (! no_recurse) { var dataset = new instance.web.DataSetStatic(this, this.field.relation, self.build_context()); this.alive(dataset.name_get([self.go("value")])).done(function(data) { self.display_value["" + cocky.get("value")] = data[0][1]; cocky.render_value(truthful); }); }
Past:
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(function(data) { if(typeof information[0] != "undefined" && information[0] != null && data[0].length > 0){ self.display_value["" + self.get("value")] = information[0][1]; self.render_value(true); } else { render false; } }); }
Commonly this error comes when y'all endeavor to pass an non existing id to a many2many/many2one field.
This fault occurs in Chrome Browser when you lot read a property or telephone 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 (simply its own undefined type instead), and properties tin can merely belong to objects within JavaScript. There are a few variations of this error depending on the holding you are trying to access. Sometimes instead of undefined it will say nada.
http://cyberspace-informations.com/js/iq/unerror.htm
You could go 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);
After reproduce the mistake and then check on your browser developer tools console to encounter the trouble.
For chrome use right-click and inspect option and see the console.
Answer by @oscarolar
If using nginx, read this post >>
http://world wide web.developpez.internet/forums/d1498867/logiciels/solutions-d-entreprise/erp/odoo-ex-openerp/v8-importation-csv-mistake-cannot-read-belongings-1-of-undefined/
I am getting this error when trying to add a client invoice. The error appears when I attempt to add an invoice line, it gives this error and does not allow me to add together an invoice line.
I checked the property fields as suggested and all fields seems to exist at that place. The organisation is a fresh install with a custom chart of accounts. Account payable and receivable are available for the customer. Also income and expense accounts are available for the product.
Please help.
UPDATE: The event is now stock-still. In that location was non default business relationship set for the generic properties of receivable, payable, expense and income accounts. Cheers then much for your aid.
This is happening likewise with my when I access the Products form and click on Create. Following the instructions I found 5 property values on product form: three for stock counter parts (property_stock_procurement, property_stock_production and property_stock_inventory) and two for accounting (property_account_income and property_account_expense). All v belongings values are defined on settings / parameters / configuration parameters. Any idea please?
I am also getting this same error when creating a new production from the betoken of auction menu. When I create a new production from anywhere else (like purchase menu) I do non get this error.
It happens for all users for me.
I take tried setting defaults in debug mode only that doesn't seem to observe 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).
varghesehyderette.blogspot.com
Source: https://www.odoo.com/id_ID/forum/bantuan-1/uncaught-typeerror-cannot-read-property-1-of-undefined-28100
0 Response to "Errormessage: "Cannot Read Property 'custom' of Undefined","
Post a Comment