Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
5097 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Câu trả lời hay nhất

Is the record inside the openerp and data tags?


e.g.

<openerp>
<data>
<!-- YOUR RECORD -->
</data>
</openerp>
Ảnh đại diện
Huỷ bỏ
Tác giả

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">

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 3 16
3692
0
thg 9 23
1944
0
thg 9 23
1646
1
thg 4 24
2247
2
thg 6 25
11126