Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'constructor' of undefined #52

Closed
odortega opened this issue Jan 12, 2016 · 3 comments
Closed

TypeError: Cannot read property 'constructor' of undefined #52

odortega opened this issue Jan 12, 2016 · 3 comments

Comments

@odortega
Copy link

sale_commission_error
I am using "sale_commission" module for manage sales commission to sales team https://www.odoo.com/apps/modules/8.0/sale_commission/, when I am creating a sale order all work fine till I try to add sale order line whith a different product than before line.

May you help me?
Thanks very much : ]

Odoo V: 8.0.2

This is the trace:

TypeError: Cannot read property 'constructor' of undefined
at wrap_context (https://moogo.co/web/js/web.assets_backend/1efc6a0:2918:7)
at https://moogo.co/web/js/web.assets_backend/1efc6a0:2921:127
at Array.reduce (native)
at Function..reduce..foldl..inject (https://moogo.co/web/js/web.assets_common/87b133b:11:564)
at .(anonymous function) as reduce
at eval_contexts (https://moogo.co/web/js/web.assets_backend/1efc6a0:2919:175)
at https://moogo.co/web/js/web.assets_backend/1efc6a0:2921:253
at Array.reduce (native)
at Function.
.reduce.
.foldl._.inject (https://moogo.co/web/js/web.assets_common/87b133b:11:564)
at _.(anonymous function) as reduce
at eval_contexts (https://moogo.co/web/js/web.assets_backend/1efc6a0:2919:175)instance.web.FormView.instance.web.View.extend._process_save @ 1efc6a0:3564(anonymous function) @ 1efc6a0:3549(anonymous function) @ 87b133b:249fire @ 87b133b:243self.fireWith @ 87b133b:248(anonymous function) @ 87b133b:251fire @ 87b133b:243self.fireWith @ 87b133b:248self.fire @ 87b133b:249(anonymous function) @ 87b133b:1145fire @ 87b133b:243self.fireWith @ 87b133b:248self.fire @ 87b133b:249fire @ 87b133b:243self.add @ 87b133b:244(anonymous function) @ 87b133b:249fire @ 87b133b:243self.fireWith @ 87b133b:248(anonymous function) @ 87b133b:249fire @ 87b133b:243self.fireWith @ 87b133b:248self.fire @ 87b133b:249(anonymous function) @ 87b133b:1093(anonymous function) @ 87b133b:249fire @ 87b133b:243self.fireWith @ 87b133b:248self.fire @ 87b133b:249fire @ 87b133b:243self.fireWith @ 87b133b:248(anonymous function) @ 87b133b:249fire @ 87b133b:243self.fireWith @ 87b133b:248(anonymous function) @ 87b133b:249fire @ 87b133b:243self.fireWith @ 87b133b:248done @ 87b133b:682callback @ 87b133b:735
87b133b:730 POST https://moogo.co/longpolling/poll net::ERR_EMPTY_RESPONSEsend @ 87b133b:730jQuery.extend.ajax @ 87b133b:700(anonymous function) @ 87b133b:1122genericJsonRpc @ 87b133b:1120openerp.jsonRpc @ 87b133b:1122(anonymous function) @ 87b133b:1134(anonymous function) @ 87b133b:249fire @ 87b133b:243self.add @ 87b133b:244(anonymous function) @ 87b133b:249jQuery.extend.each @ 87b133b:225(anonymous function) @ 87b133b:249jQuery.extend.Deferred @ 87b133b:250promise.then @ 87b133b:249openerp.Session.openerp.Class.extend.rpc @ 87b133b:1131bus.Bus.openerp.Widget.extend.poll @ 1efc6a0:4040(anonymous function) @ 1efc6a0:4040(anonymous function) @ 87b133b:249fire @ 87b133b:243self.fireWith @ 87b133b:248self.fire @ 87b133b:249fire @ 87b133b:243self.fireWith @ 87b133b:248(anonymous function) @ 87b133b:249fire @ 87b133b:243self.fireWith @ 87b133b:248(anonymous function) @ 87b133b:249fire @ 87b133b:243self.fireWith @ 87b133b:248done @ 87b133b:682callback @ 87b133b:735

@pedrobaeza
Copy link
Member

This is unfortunately a base error in the Odoo web client widgets, so it's difficult to fix, but not related with the module itself. Using expanded view (that is activated via user permissions - I don't remember now which exactly -), you will get rid off this problem.

@ivantodorovich
Copy link
Contributor

#78 will probably solve it.

@JrVeroy
Copy link

JrVeroy commented Nov 10, 2021

This is unfortunately a base error in the Odoo web client widgets, so it's difficult to fix, but not related with the module itself. Using expanded view (that is activated via user permissions - I don't remember now which exactly -), you will get rid off this problem.

I have the same error with Sale_order_line_price_history when I click the widget. How expanded view is activated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants