× Typeerror: Cannot Read Property 'value' of Undefined Checkbox
Hi guys, I am facing this trouble when i am trying to create a new client. Tin can you delight help me correct this bug. Cheers in accelerate
12 Answers
This fault is considering at that place is a property field in that model, on that form that doesn't accept his generic value divers, probably someone delete it.
you should be getting this same mistake one fourth dimension for every property with no generic value within that form.
the model is the object, for example the partner 'res.partner'
What is a holding field?
https://accounts.openerp.com/forum/Assist-1/question/24622/
Where can I define the generic value?
first you need to know the property you are going define, to know that, go developer mode on that form and check for fields that begins with 'belongings', backdrop are commonly accounts, in res.partner we also accept the price-lists.
then lets say for example our property is 'property_account_receivable' from the partner object, which is a many2one field to the object account.business relationship
now we go to settings --> parameters --> configuration parameters
we filter for generics and search for information technology, if there is no lines, so thats a problem and we need one.
and so we create ane with the proper name:'property_account_receivable', field: Account Receivable, type:many2one, resource:[no value], account.account, and the default account nosotros 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 instance.web.DataSetStatic(this, this.field.relation, self.build_context()); this.alive(dataset.name_get([cocky.become("value")])).done(role(data) { cocky.display_value["" + self.get("value")] = information[0][ane]; 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.become("value")])).done(role(information) { if(typeof data[0] != "undefined" && data[0] != cypher && data[0].length > 0){ self.display_value["" + cocky.get("value")] = data[0][1]; self.render_value(true); } else { render false; } }); } Usually this mistake comes when you try to laissez passer 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 (but its ain undefined type instead), and properties can only belong to objects within JavaScript. In that location are a few variations of this error depending on the holding you are trying to access. Sometimes instead of undefined information technology will say null.
http://net-informations.com/js/iq/unerror.htm
Y'all could get the existent reason with a small js impress to debug.
Become to \addons/web/static/src/js/view_form.js#L533 and add the post-obit lines:
console.log("FIELDNAME " +fieldname); console.log(cocky.fields);
After reproduce the fault and then check on your browser programmer tools console to see the trouble.
For chrome use right-click and inspect pick and see the console.
Respond by @oscarolar
If using nginx, read this mail >>
http://www.developpez.internet/forums/d1498867/logiciels/solutions-d-entreprise/erp/odoo-ex-openerp/v8-importation-csv-error-cannot-read-property-ane-of-undefined/
I am getting this error when trying to add a customer invoice. The mistake appears when I try to add an invoice line, it gives this error and does non let me to add an invoice line.
I checked the holding fields as suggested and all fields seems to be at that place. The system is a fresh install with a custom nautical chart of accounts. Account payable and receivable are bachelor for the customer. Also income and expense accounts are available for the product.
Please help.
UPDATE: The issue is at present stock-still. In that location was not default account set up for the generic backdrop of receivable, payable, expense and income accounts. Cheers and so much for your help.
This is happening also with my when I access the Products form and click on Create. Post-obit the instructions I found five 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 5 belongings values are defined on settings / parameters / configuration parameters. Whatever thought please?
I am also getting this same mistake when creating a new production from the point of sale menu. When I create a new production from anywhere else (like purchase card) I do non go this error.
It happens for all users for me.
I take tried setting defaults in debug mode but that doesn't seem to detect this 'undefined ' field.
The only matter I might exist able to attribute this to is deleting the others category from point of auction categories (only it recreates it automatically).
oliveiratuaid1958.blogspot.com
Source: https://www.odoo.com/forum/help-1/uncaught-typeerror-cannot-read-property-1-of-undefined-28100
0 Response to "× Typeerror: Cannot Read Property 'value' of Undefined Checkbox"
Enregistrer un commentaire