Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
5151 มุมมอง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มี.ค. 16
3786
0
ก.ย. 23
2041
0
ก.ย. 23
1756
Data for relations table แก้ไขแล้ว
1
เม.ย. 24
2320
2
มิ.ย. 25
11273