Skip to Content
Menu
This question has been flagged
1198 Views

Hi All,
I am trying to call odoo from iframe . Odoo default DENY x-frame-options in controllers . I changed the code for allow iframe like this . 

@http.route('/web/login', type='http', auth="none")
def web_login(self, redirect=None, **kw):
res = super(Home,self).web_login(**kw)
res.headers.remove('X-Frame-Options')
return res


@http.route('/web', type='http', auth="none")
def web_client(self, s_action=None, **kw):
res = super(Home, self).web_client(**kw)
res.headers.remove('X-Frame-Options')
return res

I can logged in odoo from iframe mozila firefox. but I can't save sale, contact , inventory records , but i can save manufacturing ,project , timesheet records . 

In my understanding , issue from partner_id . 



Odoo Client Error
 

An error occurred

Please use the copy button to report the error to your support service.

UncaughtPromiseError > SecurityError

Uncaught Promise > Permission denied to delete property "onLoad_FieldHtml48" on cross-origin object

 

SecurityError: Permission denied to delete property "onLoad_FieldHtml48" on cross-origin object
destroy@http://localhost:8069/web/assets/470-6545972/web\.assets_backend\.min\.js:9715:183
\ \ \ \ OdooClass\.extend/web\.assets_common\.min\.js:4721:488
\ \ \ \ _render@http://localhost:8069/web/assets/470\-6545972/web.assets_backend.min.js:4807:330

Is anyone knows how to fix this issue . ? 

Avatar
Discard
Related Posts Replies Views Activity
2
Dec 22
2198
2
Dec 24
3135
1
Dec 24
359
4
Nov 24
1367
1
Sep 24
1138