7.0 chricar_stock_care install error: Invalid XML for View Architecture!

Bug #1194631 reported by alewandro
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Camptocamp R&D Addons
Status tracked in Trunk
6.1
Fix Released
Undecided
Unassigned
7.0
Fix Released
Undecided
Unassigned
Trunk
Fix Released
Undecided
Unassigned

Bug Description

module: chricar_stock_care
Branch: 7.0

hello
I m trying to install chricar_stock_weighing but it depends of chricar_stock_care
when i try to install it, the following error message is display:
"ValidateError: Error al validar el campo (s) dearch:Invalid XML for View Architecture!"
any idea about how to fix it?
thanks in advance
Alejandro

Log File output:

2013-06-25 19:58:53,145 4906 INFO Prueba4 openerp.modules.loading: module chricar_stock_care: loading stock_care_view.xml
2013-06-25 19:58:53,163 4906 WARNING Prueba4 openerp.addons.base.ir.ir_ui_view: Setting the `type` field is deprecated in the `ir.ui.view` model.
2013-06-25 19:58:53,388 4906 ERROR Prueba4 openerp.osv.orm: Can't find field 'price_unit_coeff' in the following view parts composing the view of object model 'stock.picking':
 * stock.picking.care.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2013-06-25 19:58:53,394 4906 ERROR Prueba4 openerp.addons.base.ir.ir_ui_view: Can't render view for model: stock.picking
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/addons/base/ir/ir_ui_view.py", line 126, in _check_render_view
    fvg = self.pool.get(view.model).fields_view_get(cr, uid, view_id=view.id, view_type=view.type, context=context)
  File "/usr/lib/pymodules/python2.7/openerp/addons/stock/stock.py", line 729, in fields_view_get
    return super(stock_picking, self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar, submenu=submenu)
  File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 2260, in fields_view_get
    xarch, xfields = self.__view_look_dom_arch(cr, user, result['arch'], view_id, context=ctx)
  File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 1913, in __view_look_dom_arch
    fields_def = self.__view_look_dom(cr, user, node, view_id, False, fields, context=context)
  File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 1859, in __view_look_dom
    fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, context))
  File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 1776, in __view_look_dom
    xarch, xfields = relation.__view_look_dom_arch(cr, user, f, view_id, ctx)
  File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 1937, in __view_look_dom_arch
    raise except_orm('View error', msg)
except_orm: ('View error', u"Can't find field 'price_unit_coeff' in the following view parts composing the view of object model 'stock.picking':\n * stock.picking.care.form\n\nEither you wrongly customized this view, or some modules bringing those views are not compatible with your current data model")
2013-06-25 19:58:53,421 4906 ERROR Prueba4 openerp.tools.convert: Parse error in /usr/lib/pymodules/python2.7/openerp/addons/chricar_stock_care/stock_care_view.xml:59:
<record id="chricar_stock_care_form" model="ir.ui.view">
      <field name="name">stock.picking.care.form</field>
      <field name="model">stock.picking</field>
      <field eval="17" name="priority"/>
      <field name="arch" type="xml">
        <form string="Stock Care">
          <group colspan="4" col="6" attrs="{'readonly':[('state','!=','draft')]}">
            <field domain="('type', 'in', ['internal','production'])" name="type"/>
            <field name="name" readonly="1"/>
            <field name="partner_id" colspan="6"/>
<!--
            <field name="address_id" colspan="6"/>
-->
            <field name="date"/>
            <field name="min_date"/>
          </group>
          <field attrs="{'readonly':[('state','!=','draft')]}" colspan="4" name="move_lines" nolabel="1" widget="one2many_list">

<form string="Stock Care">
<group>
<field name="activity" required="1"/>
<field name="date"/>
<newline/>
<field name="product_id" on_change="onchange_product_id_activity(product_id,activity)"/>
<newline/>
<field name="product_qty" on_change="onchange_factor(product_qty,factor,price_unit_coeff)"/>
<field name="product_uom"/>
<field name="location_id" domain="[('usage', '=', 'internal')]"/>
<field name="prodlot_id" domain="[('product_id', '=', product_id)]" on_change="onchange_lot_id_care(prodlot_id, product_qty, location_id)"/>
<field name="location_dest_id" domain="[('usage', 'in', ['internal','inventory'])]"/>
<field name="location_loss_id" domain="[('usage', 'in', ['inventory'])]"/>
<newline/>
<field name="humidity"/>
<field name="humidity_dest"/>
<field name="factor" on_change="onchange_factor(product_qty,factor,price_unit_coeff)"/>
<field name="product_dest_qty"/>
<newline/>
<field name="state" readonly="1"/>
<newline/>
<field name="date"/>
<field name="name"/>
<field name="price_unit" groups="c2c_stock_accounting.group_c2c_stock_accounting_accountant"/>
<field name="price_unit_coeff" groups="c2c_stock_accounting.group_c2c_stock_accounting_accountant"/>
<field name="price_unit_id" groups="c2c_stock_accounting.group_c2c_stock_accounting_accountant"/>
<field name="move_value_cost" groups="c2c_stock_accounting.group_c2c_stock_accounting_accountant"/>
</group>
</form>

<tree string="Stock Care" editable="top">
<field name="activity" required="1"/>
<field name="date"/>
<field name="product_id" on_change="onchange_product_id_activity(product_id,activity)"/>
<field name="product_qty" on_change="onchange_factor(product_qty,factor,price_unit_coeff)"/>
<field name="product_uom"/>
<field name="location_id" domain="[('usage', '=', 'internal')]"/>
<field name="prodlot_id" domain="[('product_id', '=', product_id)]" on_change="onchange_lot_id_care(prodlot_id, product_qty, location_id)"/>
<field name="location_dest_id" domain="[('usage', 'in', ['internal','inventory'])]"/>
<field name="location_loss_id" domain="[('usage', 'in', ['inventory'])]"/>
<field name="humidity"/>
<field name="humidity_dest"/>
<field name="factor" on_change="onchange_factor(product_qty,factor,price_unit_coeff)"/>
<field name="product_dest_qty"/>
<field name="state" readonly="1"/>
<field name="date"/>
<field name="name"/>
</tree>

</field>
<group col="10" colspan="4">
            <field name="state" readonly="1"/>
            <button name="draft_validate_care" states="draft" string="Process Now" type="object"/>
            <button name="button_cancel" states="assigned,confirmed,draft" string="Cancel"/>
          </group>
        </form>
      </field>
    </record>
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/tools/convert.py", line 847, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/usr/lib/pymodules/python2.7/openerp/tools/convert.py", line 814, in _tag_record
    id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
  File "/usr/lib/pymodules/python2.7/openerp/addons/base/ir/ir_model.py", line 963, in _update
    res_id = model_obj.create(cr, uid, values, context=context)
  File "/usr/lib/pymodules/python2.7/openerp/addons/base/ir/ir_ui_view.py", line 103, in create
    return super(view, self).create(cr, uid, values, context)
  File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 4470, in create
    self._validate(cr, user, [id_new], context)
  File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 1544, in _validate
    raise except_orm('ValidateError', '\n'.join(error_msgs))
except_orm: ('ValidateError', u'Error al validar el campo (s) dearch:Invalid XML for View Architecture!')
2013-06-25 19:58:53,427 4906 ERROR Prueba4 openerp.netsvc: ValidateError
Error al validar el campo (s) dearch:Invalid XML for View Architecture!
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 292, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 626, in dispatch
    res = fn(db, uid, *params)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 188, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 144, in wrapper
    raise except_osv(inst.name, inst.value)
except_osv: ('ValidateError', u'Error al validar el campo (s) dearch:Invalid XML for View Architecture!')

Related branches

alewandro (alewandro)
summary: - 7.0 chricar_stock_care install error: Invalid XML foew Architecture!
+ 7.0 chricar_stock_care install error: Invalid XML for View Architecture!
Revision history for this message
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote :

Hello,

Thanks for reporting the issue.

It seams it doesn't find the field `price_unit_coeff`

My guess is a dependency is missing on module c2c_product_price_unit
Try to install the module c2c_product_price_unit and it should resolve this error.

Revision history for this message
alewandro (alewandro) wrote :

Yes, that resolved the error. Thanks

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.