← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 851716] Re: [Trunk] UnboundLocalError: local variable 'obj_pool' referenced before assignment

 

Here is what's in the context :

{'lang': u'fr_FR', 'active_model': 'ir.ui.menu', 'active_ids': [102],
'tz': False, 'active_id': 102}

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/851716

Title:
  [Trunk] UnboundLocalError: local variable 'obj_pool' referenced before
  assignment

Status in OpenERP Server:
  Incomplete

Bug description:
  Using the latest trunk, I created an action in the right panel :

  <record id="action_appel_fiche" model="ir.values">
              <field name="object" eval="1" />
              <field name="name">Appel Fiche</field>
              <field name="key2">client_action_multi</field>
              <field name="value" eval="'ir.actions.server,%d'%oa_partner_client_act_serv_appel_fiche"/>
              <field name="key">action</field>
              <field name="model">oa.partner.client</field>
  </record>

  When I click on my action, I got this :

  Traceback (most recent call last):
    File "/home/thibaut/OpenERP 6/Logica/server/openerp/osv/osv.py", line 121, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/thibaut/OpenERP 6/Logica/server/openerp/osv/osv.py", line 175, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/thibaut/OpenERP 6/Logica/server/openerp/osv/osv.py", line 166, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/thibaut/OpenERP 6/Logica/server/openerp/addons/base/ir/ir_actions.py", line 632, in run
      'self': obj_pool,
  UnboundLocalError: local variable 'obj_pool' referenced before assignment

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


References