跳至内容
菜单
此问题已终结
2 回复
5137 查看

I'm writing a new custom module for work with a fresh install on a new database of Odoo 9.

The first couple times I loaded my module in, it happened without any problems. Now however, every time I attempt to install the module, I get the following error: \http\:\/\/pastebin\.com\/1bnGXvkV\ \\\

Here\ is\ the\ actual\ record\ inside\ views\.xml\:\ \http://pastebin.com/Hn5vBj1w

The difference between these two, is that inside the "arch" field, it is adding a <data> just before the form.

Why is Odoo doing this, and is there a way that I can make it not?

形象
丢弃
编写者

This forum software won't let me fix the first pastebin, nor the other backslashes. Sorry about that. I don't even know why they're there

最佳答案

Is the record inside the openerp and data tags?


e.g.

<openerp>
<data>
<!-- YOUR RECORD -->
</data>
</openerp>
形象
丢弃
编写者

Yes it is.

<openerp>

<data>

<!-- explicit list view definition -->

<record model="ir.ui.view" id="erpwarehouse.mainviewrec">

<field name="name">erpwarehouse.form</field>

<field name="model">erpwarehouse.erpwarehouse</field>

<field name="arch" type="xml">

<form string="Test">

相关帖文 回复 查看 活动
2
3月 16
3727
0
9月 23
1995
0
9月 23
1721
1
4月 24
2294
2
6月 25
11228