Cannot Read Property 'form' of Undefined at Htmldocument.t.fn.form
Hi guys, I am facing this problem when i am trying to create a new customer. Can y'all please help me right this bug. Thanks in advance
12 Answers
This mistake 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 be getting this aforementioned error one time for every belongings 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/Help-ane/question/24622/
Where tin I define the generic value?
kickoff yous demand to know the property y'all are going define, to know that, get programmer mode on that grade and cheque for fields that begins with 'belongings', backdrop are unremarkably accounts, in res.partner we also take the toll-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
now we go to settings --> parameters --> configuration parameters
we filter for generics and search for it, if there is no lines, then thats a trouble and we need one.
so we create one with the name:'property_account_receivable', field: Account Receivable, type:many2one, resource:[no value], account.account, and the default business relationship nosotros would want to put.
Hullo.
The solution is:
In the file /addons/spider 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.get("value")])).washed(function(data) { self.display_value["" + self.get("value")] = information[0][1]; cocky.render_value(true); }); }
By:
if (! no_recurse) { var dataset = new instance.web.DataSetStatic(this, this.field.relation, cocky.build_context()); this.alive(dataset.name_get([cocky.go("value")])).done(function(data) { if(typeof data[0] != "undefined" && information[0] != null && information[0].length > 0){ self.display_value["" + self.become("value")] = data[0][i]; cocky.render_value(true); } else { render false; } }); }
Usually this error comes when you endeavour 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 holding of undefined mistake is probably easiest to understand from the perspective of undefined, since undefined is non considered an object blazon at all (merely its ain undefined blazon instead), and backdrop can only belong to objects within JavaScript. There 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
Y'all could get the real reason with a small js print to debug.
Go to \addons/spider web/static/src/js/view_form.js#L533 and add the following lines:
console.log("FIELDNAME " +fieldname); console.log(self.fields);
Afterwards reproduce the mistake and and so check on your browser developer tools console to see the problem.
For chrome utilize right-click and audit option and run across the panel.
Answer by @oscarolar
If using nginx, read this mail >>
http://www.developpez.cyberspace/forums/d1498867/logiciels/solutions-d-entreprise/erp/odoo-ex-openerp/v8-importation-csv-error-cannot-read-property-1-of-undefined/
I am getting this error when trying to add a client invoice. The error appears when I effort to add an invoice line, it gives this error and does non allow me to add together an invoice line.
I checked the belongings fields as suggested and all fields seems to be at that place. The system is a fresh install with a custom chart of accounts. Business relationship payable and receivable are available for the client. As well income and expense accounts are bachelor for the product.
Please help.
UPDATE: The event is now stock-still. There was not default account set for the generic properties of receivable, payable, expense and income accounts. Thanks and then much for your help.
This is happening also with my when I access the Products form and click on Create. Following the instructions I found 5 property values on product form: 3 for stock counter parts (property_stock_procurement, property_stock_production and property_stock_inventory) and two for bookkeeping (property_account_income and property_account_expense). All 5 property values are divers on settings / parameters / configuration parameters. Any thought please?
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 buy card) I exercise not get this fault.
Information technology 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 merely thing I might be able to attribute this to is deleting the others category from point of sale categories (just information technology recreates information technology automatically).
Cannot Read Property 'form' of Undefined at Htmldocument.t.fn.form
Source: https://www.odoo.com/forum/help-1/uncaught-typeerror-cannot-read-property-1-of-undefined-28100
0 Response to "Cannot Read Property 'form' of Undefined at Htmldocument.t.fn.form"
Post a Comment