Parse.promise.when Cannot Read Property 'when' of Undefined
Howdy guys, I am facing this trouble when i am trying to create a new customer. Can you delight help me correct this bug. Cheers in accelerate
12 Answers
This error is considering there is a property field in that model, on that form that doesn't have his generic value defined, probably someone delete information technology.
you lot should exist getting this aforementioned error 1 time for every holding with no generic value within that grade.
the model is the object, for case the partner 'res.partner'
What is a holding field?
https://accounts.openerp.com/forum/Aid-1/question/24622/
Where can I ascertain the generic value?
first yous need to know the property yous are going define, to know that, get developer style on that course and check for fields that begins with 'property', backdrop are usually accounts, in res.partner we also accept the price-lists.
so lets say for example our property is 'property_account_receivable' from the partner object, which is a many2one field to the object account.account
at present we get to settings --> parameters --> configuration parameters
nosotros filter for generics and search for information technology, if there is no lines, then thats a problem and nosotros need one.
so nosotros create ane with the name:'property_account_receivable', field: Account Receivable, type:many2one, resource:[no value], business relationship.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
Supervene upon the lines:
if (! no_recurse) { var dataset = new case.web.DataSetStatic(this, this.field.relation, cocky.build_context()); this.live(dataset.name_get([cocky.get("value")])).done(function(data) { self.display_value["" + cocky.get("value")] = data[0][1]; cocky.render_value(truthful); }); } 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")])).washed(office(data) { if(typeof data[0] != "undefined" && data[0] != null && data[0].length > 0){ self.display_value["" + self.become("value")] = data[0][1]; self.render_value(true); } else { return false; } }); } Ordinarily this error comes when you attempt 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 (but its own undefined type instead), and properties can but vest to objects within JavaScript. There are a few variations of this error depending on the property yous are trying to access. Sometimes instead of undefined information technology will say cypher.
http://net-informations.com/js/iq/unerror.htm
You could get the real reason with a pocket-size js impress to debug.
Go to \addons/web/static/src/js/view_form.js#L533 and add the following lines:
console.log("FIELDNAME " +fieldname); panel.log(cocky.fields);
After reproduce the error and then check on your browser developer tools console to see the trouble.
For chrome apply right-click and inspect option and meet the console.
Respond 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-fault-cannot-read-property-i-of-undefined/
I am getting this error when trying to add together a client invoice. The error appears when I try to add an invoice line, it 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 system is a fresh install with a custom chart of accounts. Account payable and receivable are bachelor for the customer. Besides income and expense accounts are available for the production.
Please help.
UPDATE: The issue is at present stock-still. There was not default account fix for the generic backdrop of receivable, payable, expense and income accounts. Thank y'all so much for your help.
This is happening besides with my when I access the Products grade and click on Create. Post-obit the instructions I found 5 belongings values on production course: 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 property values are defined on settings / parameters / configuration parameters. Any thought delight?
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 mistake.
It happens for all users for me.
I take tried setting defaults in debug manner but that doesn't seem to find this 'undefined ' field.
The simply 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).
hutchinsonhulstores.blogspot.com
Source: https://www.odoo.com/forum/help-1/uncaught-typeerror-cannot-read-property-1-of-undefined-28100
0 Response to "Parse.promise.when Cannot Read Property 'when' of Undefined"
Post a Comment