I developed a module in openerp 7 and added the module to the addons folder thru /opt/openerp/server/openerp/addons.When the modules list is updated,the new module is visible in the installed modules list.The issue is when i click the Install Button in the module,there appears an error like this ,in a box.
ValidateError
Error occurred while validating the field(s) arch: Invalid XML for View Architecture!
I tried for a long to debug the issue but didn't find the real problem yet.It seems that the problem is with the .xml file(or maybe .py file).Both the files are attached.
warranty_info.py
from openerp.osv import osv, fields
class warranty_warranty(osv.osv):
_name = 'warranty.warranty'
_columns = {
'name':fields.many2one('res.partner','Customer Name'),
'contract':fields.many2one('account.analytic.account','Contract'),
'batch_no':fields.char('Batch No.'),
'status':fields.selection([('open','Open'),('close','Close')],'Warranty Status'),
'serial_no':fields.char('Serial No.'),
'notes':fields.text('Details'),
'line_ids': fields.one2many('order.line','ordr_id',"PREVENTIVE MAINTENANCE"),
}
warranty_warranty()
class order_line(osv.osv):
_description = "Order Line"
_name = "order.line"
_columns = {
'ordr_id': fields.many2one('warranty.warranty', 'ID'),
'date': fields.date('Date'),
'pm_status': fields.selection([('pending','Pending'),('complete','Complete')],'Preventive Maintenance Status'),
}
order_line()
warrranty_info_view.xml
warranty.search warranty.warranty search warranty.result.tree warranty.warranty tree warranty.result.form warranty.warranty Warranty Details warranty.warranty form tree,form
↧