İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
5095 Görünümler

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?

Avatar
Vazgeç
Üretici

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

En İyi Yanıt

Is the record inside the openerp and data tags?


e.g.

<openerp>
<data>
<!-- YOUR RECORD -->
</data>
</openerp>
Avatar
Vazgeç
Üretici

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Mar 16
3690
0
Eyl 23
1942
0
Eyl 23
1641
1
Nis 24
2242
2
Haz 25
11121