Uncaught Typeerror: Cannot Read Property 'controller' of Undefined
Hi guys, I am facing this trouble when i am trying to create a new customer. Tin you delight assist me correct this bug. Thank you in advance
12 Answers
This error is because there is a holding field in that model, on that form that doesn't accept his generic value defined, probably someone delete information technology.
you should be getting this aforementioned error one time for every holding with no generic value inside that form.
the model is the object, for example the partner 'res.partner'
What is a property field?
https://accounts.openerp.com/forum/Assistance-1/question/24622/
Where can I define the generic value?
first you need to know the holding you are going define, to know that, get developer style on that form and bank check for fields that begins with 'holding', properties are commonly accounts, in res.partner we as well have the cost-lists.
so lets say for example our belongings is 'property_account_receivable' from the partner object, which is a many2one field to the object account.account
now we go to settings --> parameters --> configuration parameters
we filter for generics and search for information technology, 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: Account Receivable, blazon:many2one, resource:[no value], account.account, and the default account nosotros would desire to put.
Hello.
The solution is:
In the file /addons/web/static/src/js/view_form.js
Supplant the lines:
if (! no_recurse) { var dataset = new case.web.DataSetStatic(this, this.field.relation, self.build_context()); this.alive(dataset.name_get([cocky.get("value")])).done(role(information) { self.display_value["" + self.get("value")] = information[0][1]; self.render_value(true); }); } By:
if (! no_recurse) { var dataset = new example.web.DataSetStatic(this, this.field.relation, self.build_context()); this.live(dataset.name_get([self.become("value")])).done(function(information) { if(typeof information[0] != "undefined" && information[0] != null && data[0].length > 0){ self.display_value["" + self.get("value")] = data[0][ane]; self.render_value(true); } else { render false; } }); } Usually this mistake comes when you try to laissez passer an not existing id to a many2many/many2one field.
This error occurs in Chrome Browser when you read a belongings or phone call a method on an undefined object . Uncaught TypeError: Cannot read holding of undefined error is probably easiest to understand from the perspective of undefined, since undefined is not considered an object type at all (merely its own undefined type instead), and backdrop tin only belong to objects within JavaScript. In that location are a few variations of this error depending on the property you are trying to access. Sometimes instead of undefined it will say null.
http://cyberspace-informations.com/js/iq/unerror.htm
You could get the real reason with a small js print 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(self.fields);
After reproduce the fault and then bank check on your browser developer tools console to see the problem.
For chrome use right-click and inspect option and encounter the console.
Answer by @oscarolar
If using nginx, read this post >>
http://www.developpez.net/forums/d1498867/logiciels/solutions-d-entreprise/erp/odoo-ex-openerp/v8-importation-csv-error-cannot-read-property-one-of-undefined/
I am getting this error when trying to add a customer invoice. The fault appears when I endeavor to add an invoice line, it gives this fault and does not let me to add an invoice line.
I checked the property fields equally 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 available for the customer. Also income and expense accounts are available for the product.
Please help.
UPDATE: The issue is now stock-still. There was not default account set for the generic properties of receivable, payable, expense and income accounts. Give thanks yous and so much for your help.
This is happening besides with my when I access the Products form and click on Create. Post-obit the instructions I institute 5 property values on product grade: 3 for stock counter parts (property_stock_procurement, property_stock_production and property_stock_inventory) and 2 for bookkeeping (property_account_income and property_account_expense). All 5 property values are divers on settings / parameters / configuration parameters. Whatsoever thought delight?
I am also getting this same error when creating a new product from the point of sale menu. When I create a new product from anywhere else (like purchase menu) I do not get this fault.
It happens for all users for me.
I have tried setting defaults in debug mode but that doesn't seem to find 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).
Source: https://www.odoo.com/forum/help-1/uncaught-typeerror-cannot-read-property-1-of-undefined-28100
0 Response to "Uncaught Typeerror: Cannot Read Property 'controller' of Undefined"
Post a Comment