Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
5 Vastaukset
6835 Näkymät

Hello,

I am working on my website and have some problems to save several HTML modifications using the website module.

E.g. I am working on website_blog.blog_post_short, but as soon as I try to save a (valid) modification, I get the following error message:

A server error occured. Please check you correctly signed in and that the file you are saving is correctly formatted.
[object Object]


In the server logfile I do find the following:

2019-02-14 14:16:45,519 19530 ERROR xmp odoo.sql_db: bad query: b'DELETE FROM ir_ui_view WHERE id IN (1392)'
ERROR: update or delete on table "ir_ui_view" violates foreign key constraint "ir_ui_view_inherit_id_fkey" on table "ir_ui_view"
DETAIL:  Key (id)=(1392) is still referenced from table "ir_ui_view".

Can anybody help me?

I am using the latest github-state of Odoo 12.

Thanks in advance.

Lars

Avatar
Hylkää

Hi Lars, I have the same problem here, ... no solution found so far

Paras vastaus

I had the same problem and I couldn't get it resolved with the HTML Editor of the website. However, I was able to do it by going to the backend.

Log in to the database and activate Developer Mode, then go to "Settings" -> "Technical" -> "User Interface" -> "Views". Then, type "Products" in the search field and select "Search View For: Products".

Then, look for and click on the result that has "website_sale.products" under the "External ID" column. Thereafter, you can edit the qweb form and save it. The changes you make should reflect on your web page.

 Hope this solves the problem.


Avatar
Hylkää
Paras vastaus

I have the same problem here when updating SEO information. It would be great if somebody give some clues on how to solve this. I don't know where to start. 

Avatar
Hylkää
Paras vastaus

You try to delete a view, which is still referenced. You can not proceed before you have solved this error.

Avatar
Hylkää
Tekijä

I did not ever try do delete any view. I just tried to save my HTML modifications, as described.

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
huhtik. 24
2117
3
elok. 24
6421
1
kesäk. 23
7976
0
syysk. 21
2441
1
syysk. 24
2527