此记录定义有误
<record id="file_rule_canceled" model="ir.rule">
<filed name="name"> File Canceled=True User Cann't Read</filed>
<field name="model_id" ref="model_muk_dms_file"/>
<field name="perm_read" eval="False"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_unlink" eval="False"/>
<field name="domain_force">[('canceled','=','True')] </field>
<field name="groups" eval="[(4, ref('group_gesion_dms_general_manager')), (4, ref('group_gesion_dms_manager')),(4, ref('group_gesion_dms_designer')),(4,ref('group_gesion_dms_reader'))]"/>
</record>
Odoo服务器错误:
File "D:\Odoo10_Dev\odoo10\odoo\tools\convert.py", line 902, in convert_xml_import
relaxng.assert_(doc)
File "src/lxml/lxml.etree.pyx", line 3501, in lxml.etree._Validator.assert_ (src\lxml\lxml.etree.c:194922)
AssertionError: Element odoo has extra content: record, line 4
您能帮忙找出问题所在吗?
答案 0 :(得分:1)
尝试一下:
<record id="file_rule_canceled" model="ir.rule">
<field name="name">File Canceled=True User Can't Read</field>
<field name="model_id" ref="model_muk_dms_file"/>
<field name="perm_read" eval="False"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_unlink" eval="False"/>
<field name="domain_force">[('canceled','=','True')]</field>
<field name="groups" eval="[(4, ref('group_gesion_dms_general_manager')), (4, ref('group_gesion_dms_manager')),(4, ref('group_gesion_dms_designer')),(4,ref('group_gesion_dms_reader'))]"/>
</record>