← Back to team overview

openerp-india team mailing list archive

[Bug 1088489] Re: Invalid XML for View Architecture!

 

Hello,

With the last revision is now ok

Thank you

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1088489

Title:
  Invalid XML for View Architecture!

Status in OpenERP Addons (modules):
  Incomplete

Bug description:
  This error appears when I install mrp module on new  database  Addons
  revno : 8266

  2012-12-10 14:10:37,620 21857 ERROR test openerp.osv.orm: Can't find field 'supply_method' in the following view parts composing the view of object model 'product.product':
   * product.normal.form

  Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
  2012-12-10 14:10:37,622 21857 ERROR test openerp.addons.base.ir.ir_ui_view: Can't render view  for model: product.product
  Traceback (most recent call last):
    File "/mnt/uniforme_data/openerp/7.0/server/openerp/addons/base/ir/ir_ui_view.py", line 124, 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 "/mnt/uniforme_data/openerp/7.0/server/openerp/osv/orm.py", line 2264, in fields_view_get
      xarch, xfields = self.__view_look_dom_arch(cr, user, result['arch'], view_id, context=ctx)
    File "/mnt/uniforme_data/openerp/7.0/server/openerp/osv/orm.py", line 1941, in __view_look_dom_arch
      raise except_orm('View error', msg)
  except_orm: ('View error', u"Can't find field 'supply_method' in the following view parts composing the view of object model 'product.product':\n * product.normal.form\n\nEither you wrongly customized this view, or some modules bringing those views are not compatible with your current data model")
  2012-12-10 14:10:37,648 21857 ERROR test openerp.tools.convert: Parse error in /mnt/uniforme_data/openerp/7.0/addons/product/product_view.xml:54: 
  <record id="product_normal_form_view" model="ir.ui.view">
              <field name="name">product.normal.form</field>
              <field name="model">product.product</field>
              <field eval="7" name="priority"/>
              <field name="arch" type="xml">
                  <form string="Product" version="7.0">
                      <sheet>
                          <field name="image_medium" widget="image" class="oe_avatar oe_left"/>
                          <div class="oe_title">
                              <div class="oe_edit_only">
                                  <label for="name" string="Product Name"/>
                              </div>
                              <h1>
                                  <field name="name"/>
                              </h1>
                              <label for="categ_id" class="oe_edit_only"/>
                              <h2><field name="categ_id"/></h2>
                              <div name="options" groups="base.group_user">
                                  <field name="sale_ok"/>
                                  <label for="sale_ok"/>
                              </div>
                          </div>
                          <div class="oe_right oe_button_box" name="buttons">
                          </div>
                          <notebook>
                              <page string="Information">
                                  <group>
                                      <group>
                                          <field name="type"/>
                                          <field name="uom_id" on_change="onchange_uom(uom_id,uom_po_id)" groups="product.group_uom"/>
                                          <field name="list_price"/>
                                      </group>
                                      <group>
                                          <field name="default_code"/>
                                          <label for="ean13"/>
                                          <div name="ean">
                                              <field name="ean13" placeholder="e.g. 5901234123457"/>
                                          </div>
                                      </group>
                                      <group>
                                          <field groups="product.group_product_variant" name="variants"/>
                                          <field name="price_margin" groups="product.group_product_variant"/>
                                          <field name="price_extra" groups="product.group_product_variant"/>
                                      </group>
                                  </group>
                                  <field name="description" placeholder="describe the product characteristics..."/>
                              </page>
                              <page string="Procurements" groups="base.group_user">
                                  <group name="procurement">
                                      <group name="general">
                                          <field name="cost_method" groups="product.group_costing_method"/>
                                          <field name="standard_price" attrs="{'readonly':[('cost_method','=','average')]}"/>
                                      </group>
                                      <group name="procurement_uom" groups="product.group_uom" string="Purchase">
                                          <field name="supply_method"/>
                                          <field name="uom_po_id"/>
                                      </group>
                                  </group>
                                  <separator string="Description for Suppliers"/>
                                  <field name="description_purchase" placeholder="This note will be displayed on requests for quotation..."/>
                              </page>
                              <page string="Inventory" groups="base.group_user">
                                  <group name="inventory">
                                      <group name="status" string="Status">
                                          <field name="state"/>
                                          <field name="product_manager"/>
                                      </group>
                                      <group name="Weights" groups="product.group_stock_packaging" string="Weights">
                                          <field digits="(14, 3)" name="volume" attrs="{'readonly':[('type','=','service')]}"/>
                                          <field name="weight" attrs="{'readonly':[('type','=','service')]}"/>
                                          <field name="weight_net" attrs="{'readonly':[('type','=','service')]}"/>
                                      </group>
                                  </group>
                              </page>
                              <page string="Sales" attrs="{'invisible':[('sale_ok','=',False)]}">
                                  <group name="sale">
                                      <group string="Sale Conditions">
                                          <label for="warranty"/>
                                          <div>
                                              <field name="warranty" class="oe_inline"/> months
                                          </div>
                                      </group>
                                      <group groups="product.group_uos" string="Unit of Measure">
                                          <field name="uos_id"/>
                                          <field name="uos_coeff"/>
                                          <field name="mes_type"/>
                                      </group>
                                  </group>
                                  <field name="packaging" groups="product.group_stock_packaging">
                                      <form string="Packaging" version="7.0">
                                          <group col="4">
                                              <field name="ean"/>
                                              <field name="sequence" invisible="1"/>
                                              <newline/>
                                              <field name="qty"/>
                                              <field name="ul"/>
                                              <field name="weight_ul"/>
                                              <separator colspan="4" string="Palletization"/>
                                              <field name="ul_qty"/>
                                              <field name="rows"/>
                                              <field name="weight"/>
                                              <separator colspan="4" string="Pallet Dimension"/>
                                              <field name="height"/>
                                              <field name="width"/>
                                              <field name="length"/>
                                          </group>
                                          <separator colspan="4" string="Description"/>
                                          <field name="name"/>
                                      </form>
                                  </field>
                                  <separator string="Description for Quotations"/>
                                  <field name="description_sale" placeholder="note to be displayed on quotations..."/>
                              </page>
                          </notebook>
                      </sheet>
                      <div class="oe_chatter">
                          <field name="message_follower_ids" widget="mail_followers"/>
                          <field name="message_ids" widget="mail_thread"/>
                      </div>
                  </form>
              </field>
          </record>
  Traceback (most recent call last):
    File "/mnt/uniforme_data/openerp/7.0/server/openerp/tools/convert.py", line 848, in parse
      self._tags[rec.tag](self.cr, rec, n)
    File "/mnt/uniforme_data/openerp/7.0/server/openerp/tools/convert.py", line 815, 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 "/mnt/uniforme_data/openerp/7.0/server/openerp/addons/base/ir/ir_model.py", line 956, in _update
      res_id = model_obj.create(cr, uid, values, context=context)
    File "/mnt/uniforme_data/openerp/7.0/server/openerp/addons/base/ir/ir_ui_view.py", line 101, in create
      return super(osv.osv, self).create(cr, uid, values, context)
    File "/mnt/uniforme_data/openerp/7.0/server/openerp/osv/orm.py", line 4443, in create
      self._validate(cr, user, [id_new], context)
    File "/mnt/uniforme_data/openerp/7.0/server/openerp/osv/orm.py", line 1548, in _validate
      raise except_orm('ValidateError', '\n'.join(error_msgs))
  except_orm: ('ValidateError', u'Une erreur est apparue lors de la validation du/des champ(s) arch: Invalid XML for View Architecture!')

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1088489/+subscriptions


References