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

Let's just say I hand craft some lovely XML for a view, update the module and am brought to a screeching halt by this error message:

except_orm: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid XML for View Architecture!')

How would you approach resolving this issue?

Is there a way to see more detail about what the complaint is?

Would you cut out everything inside

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

then add it back a piece at a time until the error shows up again?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

You can see more details about the error (offending view, what is the problem) in the server log file.

It is sometimes more convenient not to work with OpenERP as a service when developing. If you run openerp-server without the --log-file option, it should output to stdout. (/path/to/openerp-server --config=/path/to/openerp-server.conf --debug )

In a general manner, when you develop, you better have to activate the debug logging's level, so you'll have more details about the errors in the logs.

To activate the debug level, you can start your server with the option --debug

More details about the logging options: path/to/openerp-server --help

[EDIT] more information about the log file

อวตาร
ละทิ้ง
ผู้เขียน

service openerp stop

ผู้เขียน

sudo su openerp

ผู้เขียน

/usr/bin/python /usr/bin/openerp-server --debug --config=/etc/openerp/openerp-server.conf --logfile=/var/log/openerp-server.log

คำตอบที่ดีที่สุด

You also see these details in the server log file

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ต.ค. 24
7552
2
ม.ค. 24
15336
5
มิ.ย. 17
6974
7
เม.ย. 15
7185
1
มี.ค. 15
5727