2

I have done some editing to the home page of ODOO website using the EDIT button at the top-left corner. After some time, I have decided to make some changes to the Home page by inheriting the XML template to my module and done the changes in the template. But these changes are not reflecting in the web page. I have faced this problem many times on customizing the template with the website builder of ODOO. I have noticed that the changes are directly applied to the XML view which can be seen at Settings->Technical Settings->User Interface->Views and this is not changed to the previous state even the module is upgraded. Is there any way I could customize the template by inheriting it in my module in this case? The customizations work for all templates for which I have done no editing in the website builder.

4

2 回答 2

6

当通过网站编辑器保存视图/模板时,它会标记相关ir.model.data记录(如果存在),noupdate = True以便在更新模块时不将更改应用于视图。

要进行更改,您需要删除ir.model.data 模型表上该记录的 noupdate 值。

于 2015-10-29T06:52:50.733 回答
0

更新您的主题

由于只有在安装主题时才会加载 XML 文件,因此每次对 xml 文件进行更改时都必须强制重新加载。

为此,请单击模块页面中的升级按钮。

在此处输入图像描述

于 2015-10-28T11:02:39.927 回答