← Back to team overview

openerp-brazil-team team mailing list archive

[Bug 792573] Re: [l10n_br_stock] onchange_partner_in error: AttributeError: 'Field partner_id not found in browse_record(res.company, 2)'

 

** Changed in: openerp.pt-br-localiz
     Assignee: (unassigned) => Renato Lima - http://www.akretion.com (renatonlima)

** Changed in: openerp.pt-br-localiz
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of OpenERP
Brazil Team, which is the registrant for OpenERP Brazilian Portuguese
Localization (pt_BR).
https://bugs.launchpad.net/bugs/792573

Title:
  [l10n_br_stock] onchange_partner_in error: AttributeError: 'Field
  partner_id not found in browse_record(res.company, 2)'

Status in OpenERP Brasil:
  Fix Released

Bug description:
  para reproduzir: novo picking de saida para ser faturado. A caegoria
  de operaçao fiscal ja esta e a operaçao fiscal tb. Se vc mudar o
  enreço do picking, aparece esse erro:

    File "/opt/openerp-trunk/server/bin/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/opt/openerp-trunk/server/bin/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/opt/openerp-trunk/server/bin/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/opt/openerp-trunk/addons/l10n_br_stock/stock.py", line 58, in onchange_partner_in
      company_addr = self.pool.get('res.partner').address_get(cr, uid, [obj_company.partner_id.id], ['default'])
    File "/opt/openerp-trunk/server/bin/osv/orm.py", line 294, in __getattr__
      raise AttributeError(e)
  AttributeError: 'Field partner_id not found in browse_record(res.company, 2)'

To manage notifications about this bug go to:
https://bugs.launchpad.net/openerp.pt-br-localiz/+bug/792573/+subscriptions


References