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 . ?