继承web.assets_backend时出错

时间:2018-10-24 11:53:01

标签: css xml odoo

xml 文件中继承web.assets_backend时,在Odoo12中出现以下错误:

odoo.tools.convert.ParseError: "syntax error at or near "ON"
LINE 4:                 ON CONFLICT (module, name)
                    ^
" while parsing None:4, near
<data inherit_id="web.assets_backend">
    <xpath expr="." position="inside">
        <link rel="stylesheet" type="css" href="/skit_freeze_header/static/src/css/freeze_header.css"/>
    </xpath>
</data>

下面是使用的代码:

<template id="assets_backend" inherit_id="web.assets_backend">

1 个答案:

答案 0 :(得分:0)

已解决..对于Odoo12,postgres版本要满足9.5及更高版本(我使用的是9.3) 我更新并尝试过。安装程序完成,并且在创建db时发生“ sassc”错误。 要解决该问题,请尝试以下命令: 1. pip安装libsass 2. npm install--save-dev gulp-sass