view inheritance not working properly in OpenERP 7.0
I'm working with OpenERP version 7.0-20130305-002149
in Ubuntu 10.04
In a cleand DataBase I install sale_stock module, then I create a this simple test view to try to add a new field after 'shipped' field
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="test view" model="ir.ui.view">
<field name="name"
<field name="model"
<field name="type"
<field name="inherit_id" ref="sale.
<field name="arch" type="xml">
<data>
<field name="shipped" position="after">
<separator string="new item test" colspan="4"/>
</field>
</data>
</field>
</record>
</data>
</openerp>
'shipped' field is added by sale_stock module (sale_stock_
when I try to install the test view I get the following error
_______
2013-03-09 15:12:07,063 8374 ERROR 70a openerp.
Traceback (most recent call last):
File "/opt/openerp70
fvg = self.pool.
File "/opt/openerp70
arch=
File "/opt/openerp70
source = apply_inheritan
File "/opt/openerp70
raise_
File "/opt/openerp70
% (child_view.xml_id, self._name, error_msg))
AttributeError: View definition error for inherited view 'aaa.test view' on model 'sale.order': Element '<field name="shipped">' not found in parent view 'sale.view_
2013-03-09 15:12:07,075 8374 ERROR 70a openerp.
<record id="test view" model="ir.ui.view">
<field name="name"
<field name="model"
<field name="type"
<field name="inherit_id" ref="sale.
<field name="arch" type="xml">
<data>
<field name="shipped" position="after">
<separator string="new item test" colspan="4"/>
</field>
</data>
</field>
</record>
Traceback (most recent call last):
File "/opt/openerp70
self.
File "/opt/openerp70
id = self.pool.
File "/opt/openerp70
model_
File "/opt/openerp70
return super(view, self).write(cr, uid, ids, vals, context)
File "/opt/openerp70
self.
File "/opt/openerp70
raise except_
except_orm: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid XML for View Architecture!')
2013-03-09 15:12:07,076 8374 ERROR 70a openerp: Failed to initialize database `70a`.
Traceback (most recent call last):
File "/opt/openerp70
db, registry = openerp.
File "/opt/openerp70
registry = RegistryManager
File "/opt/openerp70
update_module)
File "/opt/openerp70
openerp.
File "/opt/openerp70
processed = load_marked_
File "/opt/openerp70
loaded, processed = load_module_
File "/opt/openerp70
load_
File "/opt/openerp70
load_data = lambda *args: _load_data(cr, *args, kind='data')
File "/opt/openerp70
tools.
File "/opt/openerp70
obj.
File "/opt/openerp70
self.
File "/opt/openerp70
id = self.pool.
File "/opt/openerp70
model_
File "/opt/openerp70
return super(view, self).write(cr, uid, ids, vals, context)
File "/opt/openerp70
self.
File "/opt/openerp70
raise except_
except_orm: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid XML for View Architecture!')
_______
as I understand 'shipped' field not exist in 'sale.view_
is this an error?? or to add a field after 'shipped' I need to inherit from sale_stock.
this happend to me on OpenERP 7.0 but in 6.1 version works fine.
Question information
- Language:
- English Edit question
- Status:
- Expired
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: