← Back to team overview

credativ team mailing list archive

[Bug 907487] Re: base_contact inherit error

 

the problem comes from 
./openobject-addons/base_contact/base_contact_view.xml

 <!-- Views for Partners Form View -->

    <record model="ir.ui.view" id="view_partner_form_inherit">
        <field name="name">Partner form inherited</field>
        <field name="model">res.partner</field>
        <field name="inherit_id" ref="base.view_partner_form"/>
        <field name="type">form</field>
        <field name="arch" type="xml">
            <separator string="Postal Address" position="after">
                <field name="location_id" on_change="onchange_location_id(location_id)"/>
            </separator>
            <xpath expr="//field[@string='Contact Name']" position="replace">
                <field name="contact_id"/>
            </xpath>
            <field name="title" position="replace"/>
        </field>
    </record>

in "base.view_partner_form" there is no "Contact Name" any more

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

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

Title:
  base_contact inherit error

Status in OpenERP Addons (modules):
  New

Bug description:
  Server Traceback (most recent call last):
    File "/srv/openerp/instances/trunk/openerp-web/addons/web/common/openerplib/main.py", line 257, in send
      result = openerp.netsvc.dispatch_rpc(service_name, method, args)
    File "/home/srv/openerp/instances/trunk/openobject-server/openerp/netsvc.py", line 325, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/home/srv/openerp/instances/trunk/openobject-server/openerp/service/web_services.py", line 580, in dispatch
      res = fn(db, uid, *params)
    File "/home/srv/openerp/instances/trunk/openobject-server/openerp/osv/osv.py", line 120, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/srv/openerp/instances/trunk/openobject-server/openerp/osv/osv.py", line 172, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/srv/openerp/instances/trunk/openobject-addons/audittrail/audittrail.py", line 495, in execute_cr
      return fct_src(cr, uid, model, method, *args)
    File "/home/srv/openerp/instances/trunk/openobject-server/openerp/osv/osv.py", line 163, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/srv/openerp/instances/trunk/openobject-server/openerp/osv/orm.py", line 2089, in fields_view_get
      arch=apply_view_inheritance(cr, user, source, sql_res['id']),
    File "/home/srv/openerp/instances/trunk/openobject-server/openerp/osv/orm.py", line 2047, in apply_view_inheritance
      source = apply_inheritance_specs(source, view_arch, view_id)
    File "/home/srv/openerp/instances/trunk/openobject-server/openerp/osv/orm.py", line 2032, in apply_inheritance_specs
      raise_view_error("Element '%s' not found in parent view '%%(parent_xml_id)s'" % tag, inherit_id)
    File "/home/srv/openerp/instances/trunk/openobject-server/openerp/osv/orm.py", line 1930, in raise_view_error
      %  (child_view.xml_id, self._name, error_msg))
  AttributeError: View definition error for inherited view 'base_contact.view_partner_form_inherit' on model 'res.partner': Element '<xpath expr="//field[@string='Contact Name']">' not found in parent view '%(parent_xml_id)s'

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


References