Uncaught ReferenceError: pyeval is not defined - odoo

When I click Export XLSX on the General Ledger I get the error : pyeval is not defined
any idea how can I deal with it ?
after adding the debug=assets on the url I got :
http://localhost:8069/web_pdf_preview/static/src/js/web_pdf_preview.js:117
Retraçage :
ReferenceError: pyeval is not defined
at Class.ir_actions_report_xml (http://localhost:8069/web_pdf_preview/static/src/js/web_pdf_preview.js:117:30)
at Class.ir_actions_report_xml (http://localhost:8069/web/static/src/js/framework/class.js:122:38)
at Class.do_action (http://localhost:8069/web/static/src/js/action_manager.js:672:33)
at Class.do_action (http://localhost:8069/web/static/src/js/framework/widget.js:409:37)
at Class.do_action (http://localhost:8069/web/static/src/js/framework/widget.js:409:37)
at Class.do_action (http://localhost:8069/web/static/src/js/framework/widget.js:409:37)
at Object.handler (http://localhost:8069/web/static/src/js/framework/view.js:97:29)
at Object.<anonymous> (http://localhost:8069/web/static/lib/jquery/jquery.js:3276:89)
at fire (http://localhost:8069/web/static/lib/jquery/jquery.js:3119:58)
at Object.fireWith [as resolveWith] (http://localhost:8069/web/static/lib/jquery/jquery.js:3231:49)

solved the problem by adding declaring the variable pyeval on the file: web_pdf_preview/static/src/js/web_pdf_preview.js
var pyeval = require('web.pyeval');

Related

How to handle errors in Vue

i have a good question that it's hard for me to find the answer. Sometimes i get an error something like this:
[Vue warn]: Error in render: "TypeError: Cannot read property 'email'undefined"
found in
---> <IUserSettings> at src\IUser\IUserSettings.vue
<Imenu> at src\Imenu.vue
<Icontent> at src\Icontent.vue
<ISlider> at src\UI\slider\ISlider.vue
<ISetup> at src\ISetup.vue
<ISlider> at src\UI\slider\ISlider.vue
<Iaccess> at src\Iaccess.vue
<ISlider> at src\UI\slider\ISlider.vue
<App> at src\App.vue
<Root>
TypeError: Cannot read property 'email' of undefined
at Proxy.render (eval at ./node_modules/vue-loader/lib/template-compiler/index.js?{"id":"data-v-2e2bc539","hasScoped":true,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/IUser/IUserSettings.vue (app.js:6008), <anonymous>:159:63)
at VueComponent.Vue._render (vue.esm.js?efeb:4544)
at VueComponent.updateComponent (vue.esm.js?efeb:2788)
at Watcher.get (vue.esm.js?efeb:3142)
at Watcher.run (vue.esm.js?efeb:3219)
at flushSchedulerQueue (vue.esm.js?efeb:2981)
at Array.eval (vue.esm.js?efeb:1837)
at flushCallbacks (vue.esm.js?efeb:1758)
How do i find where the error come from? Is there away to to trace the tag where the error was occurred? Thx
The error happens at the first element you see in the trace. In your example, it happens inside src\IUser\IUserSettings.vue. Look for an object which has email property in that element, and make sure it isn't undefined.

Polymer 2.0 - Uncaught TypeError: this._propertySetter is not a function

I am trying to build my personal website using Polymer 2.0.0-rc.7 and WebComponents 1.0.0-rc.5.
But my custom elements are not showing up on the Chrome browser (Version 58.0.3029.81 (64-bit)) and IE 11, I have opened the DevTools and saw the below errors.
Please help me if you know the solution for the below errors.
Thanks.
Uncaught TypeError: this._propertySetter is not a function
at HTMLElement.__setMulti (app-route.html:402)
at HTMLElement.__tryToMatch (app-route.html:328)
at Object.runMethodEffect [as fn] (property-effects.html:768)
at runEffectsForProperty (property-effects.html:137)
at runEffects (property-effects.html:103)
at HTMLElement._propertiesChanged (property-effects.html:1554)
at HTMLElement._flushProperties (property-accessors.html:496)
at HTMLElement._flushClients (property-effects.html:1468)
at HTMLElement._propertiesChanged (property-effects.html:1550)
at HTMLElement._flushProperties (property-accessors.html:496)
Uncaught TypeError: Cannot read property 'split' of undefined
app-scroll-effects-behavior.html:274
at HTMLElement._effectsChanged (app-scroll-effects-behavior.html:274)
at Object.runMethodEffect [as fn] (property-effects.html:768)
at runEffectsForProperty (property-effects.html:137)
at runEffects (property-effects.html:103)
at HTMLElement._propertiesChanged (property-effects.html:1554)
at HTMLElement._flushProperties (property-accessors.html:496)
at HTMLElement._invalidateProperties (property-effects.html:1432)
at HTMLElement._setProperty (property-effects.html:1418)
at HTMLElement.Object.defineProperty.set (property-accessors.html:391)
at HTMLElement.connectedCallback (legacy-element-mixin.html:82)

ERROR [app-router] TypeError: Cannot read property 'attrToRemove' of undefined

I am using Aurelia to build single page application and I am getting an error during view loading for a new route:
ERROR [app-router] TypeError: Cannot read property 'attrToRemove' of
undefined
Make sure that you did not mistype any Aurelia attribute in your view template. (Ex reapet.for instead of repeat.for).

Error in Dojo with highCharts showLoading option

I get this error in the console when I executed this http://jsfiddle.net/ikercrg/FSfR2/3/:
Uncaught TypeError: Object [object global] has no method '_getStyle'
The error happens because of these lines:
chart.showLoading();
...
chart.hideLoading();
And obviously nothing happen with this 'loading' option.
How can I solve this problem and make this 'loading' works correctly?

ST2.1 - Uncaught TypeError: Object [object Object] has no method 'link'

I've just tried to upgrade my ST2.0 source files of my application to ST2.1 by copying over all the javascript files in my project in the 'src' folder. When I load the first screen I get the following error:
Uncaught TypeError: Object [object Object] has no method 'link'
Is there a standard way to upgrade to 2.1? Any ideas why am I getting this error?
It seems to be happening in container.js, at this point in code:
updateUseBodyElement: function(useBodyElement) {
if (useBodyElement) {
this.link('bodyElement', this.innerElement.wrap({
Uncaught TypeError: Object [object Object] has no method 'link'
cls: 'x-body'
}));
}
},
The src folder for 2.1 is different, you cannot upgrade by just copying over the files.
This is the site I used to get my app upgraded.
http://senchatouchexp.blogspot.com/2012/12/sencha-touch-20x-upgrade-21.html