没有有价值信息的XML错误
我的代码有什么问题?不幸的是,这个错误没有提供任何有价值的信息 文件“src/lxml/lxml.etree.pyx”,第3501行,位于lxml.etree.Validator.assert(src/lxml/lxml.etree.c:194922)中 AssertionError:Element openerp有额外的内容:数据,第3行没有有价值信息的XML错误,xml,odoo-8,odoo,Xml,Odoo 8,Odoo,我的代码有什么问题?不幸的是,这个错误没有提供任何有价值的信息 文件“src/lxml/lxml.etree.pyx”,第3501行,位于lxml.etree.Validator.assert(src/lxml/lxml.etree.c:194922)中 AssertionError:Element openerp有额外的内容:数据,第3行 <openerp> <data> <record id="account_payment_cas
<openerp>
<data>
<record id="account_payment_cash_turnover_analysis_osv" model="ir.ui.view">
<field name="name">account_payment_cash turnover analysis osv</field>
<field name="model">account.payment.cash.turnover.analysis.osv</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Turnover Analysis">
<field name="date_from" />
<field name="date_to" />
<group colspan="4">
<field name="comp_currency" />
</group>
<footer>
<button name="process" string="OK" type="object" class="oe_highlight"/>
or
<button string="Cancel" class="oe_link" special="cancel"/>
</footer>
</form>
</field>
</record>
<wizard
id="wizard_balance"
model="payment.mode"
name="account_payment_cash.balance"
string="Balance" />
<menuitem
icon="STOCK_PRINT"
action="wizard_balance"
id="menu_wizard_balance"
parent="menu_report_banks"/>
<act_window name="Turnover Analysis"
res_model="account.payment.cash.turnover.analysis.osv"
view_mode="form"
view_type="form"
target="new"
id="act_account_wizard_reconcile_entries_osv"/>
<menuitem
parent="menu_report_banks"
action="act_account_wizard_reconcile_entries_osv"
icon="STOCK_JUSTIFY_FILL"
id="menu_act_account_wizard_reconcile_entries_osv" />
</data>
</openerp>
账户\付款\现金周转分析osv
账户、付款、现金、营业额、分析、osv
形式
或
尝试将第3行更改为:
<record name="account_payment_cash_turnover_analysis_osv" model="ir.ui.view">
浏览互联网时,你会发现很多人都有这种“问题”。例如:
在Odoo的xml导入中,没有标记
向导的转换。这就是告诉您的错误:向导
是导入不需要的内容
因此,改变:
致:
账户\付款\现金余额
平衡
我不知道字段名是否正确,但我打赌您现在明白了。这很有道理:)