← Back to team overview

openerp-india team mailing list archive

[Bug 1016368] Re: Error while installing 'sale_margin'.

 

** Changed in: openobject-addons
   Importance: Undecided => High

** Changed in: openobject-addons
       Status: New => Confirmed

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 3 (openerp-dev-addons3)

-- 
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/1016368

Title:
  Error while installing 'sale_margin'.

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  Install sale_margin

  At revision number:

  4205 - server
  2599 - web
  6920 - addons

  It gives the following traceback:

  Traceback (most recent call last):
    File "/home/mdi/openerp/rdtools/server/trunk/openerp/addons/base/ir/ir_ui_view.py", line 101, 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 "/home/mdi/openerp/rdtools/server/trunk/openerp/osv/orm.py", line 2147, in fields_view_get
      arch=apply_view_inheritance(cr, user, source, sql_res['id']),
    File "/home/mdi/openerp/rdtools/server/trunk/openerp/osv/orm.py", line 2105, in apply_view_inheritance
      source = apply_inheritance_specs(source, view_arch, view_id)
    File "/home/mdi/openerp/rdtools/server/trunk/openerp/osv/orm.py", line 2089, in apply_inheritance_specs
      raise_view_error("Element '%s' not found in parent view '%%(parent_xml_id)s'" % tag, inherit_id)
    File "/home/mdi/openerp/rdtools/server/trunk/openerp/osv/orm.py", line 1982, in raise_view_error
      %  (child_view.xml_id, self._name, error_msg))
  AttributeError: View definition error for inherited view 'sale_margin.sale_margin_sale_order' on model 'sale.order': Element '<xpath expr="//group[@class='oe_subtotal_footer']">' not found in parent view 'sale.view_order_form'
  2012-06-22 04:29:31,212 2842 ERROR sale openerp.tools.convert: Parse error in /home/mdi/openerp/rdtools/addons/trunk/sale_margin/sale_margin_view.xml:17: 
  <record model="ir.ui.view" id="sale_margin_sale_order_line">
          <field name="name">sale.order.line.margin.view.form</field>
          <field name="type">form</field>
          <field name="model">sale.order</field>
          <field name="inherit_id" ref="sale.view_order_form"/>
          <field name="arch" type="xml">
              <xpath expr="//field[@name='order_line']/form//field[@name='price_unit']" position="after">
                  <field name="purchase_price"/>
              </xpath>
          </field>
      </record>
  Traceback (most recent call last):
    File "/home/mdi/openerp/rdtools/server/trunk/openerp/tools/convert.py", line 854, in parse
      self._tags[rec.tag](self.cr, rec, n)
    File "/home/mdi/openerp/rdtools/server/trunk/openerp/tools/convert.py", line 821, 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 "/home/mdi/openerp/rdtools/server/trunk/openerp/addons/base/ir/ir_model.py", line 782, in _update
      res_id = model_obj.create(cr, uid, values, context=context)
    File "/home/mdi/openerp/rdtools/server/trunk/openerp/osv/orm.py", line 4260, in create
      self._validate(cr, user, [id_new], context)
    File "/home/mdi/openerp/rdtools/server/trunk/openerp/osv/orm.py", line 1463, in _validate
      raise except_orm('ValidateError', '\n'.join(error_msgs))
  except_orm: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid XML for View Architecture!')

  Thanks,
  Divyesh

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


References