← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 710516] Re: Purchase: Try to select destination address which has no partner on it

 

Hello,

Fixes landed into : By revision
========================

Stable 5.0 : 2902 jvo@xxxxxxxxxxx-20110210183742-hx1vtrpx0vx3wpti
Stable 6.0 : 4400 jvo@xxxxxxxxxxx-20110210184806-qg3ivhwlcp69b39v.

Thanks.

P.S. : The fix has replaced read() by browse(),because calling a read()
with a many2one field causes an extra call to name_get() which can in
turn cause to be time-consuming(Though in terms of milliseconds).

Kindly correct me if I missed anything.

** Summary changed:

- Purchase: Try to select partner address which has no partner on it
+ Purchase: Try to select destination address which has no partner on it

** Changed in: openobject-addons/6.0
       Status: Confirmed => Fix Released

** Changed in: openobject-addons/5.0
       Status: Confirmed => Fix Released

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

Title:
  Purchase: Try to select destination address which has no partner on it

Status in OpenERP Modules (addons):
  Confirmed
Status in OpenERP Addons 5.0 series:
  Fix Released
Status in OpenERP Addons 6.0 series:
  Fix Released
Status in OpenERP Addons trunk series:
  Confirmed

Bug description:
  Hello,

  If i select Destination Address on Purchase order (Delivering and inovicing tab) which has no partner defined it gives error:
  File "/home/mra/workspace/trunk-dev-addons3/purchase/purchase.py", line 260, in onchange_dest_address_id
      part_id = self.pool.get('res.partner.address').read(cr, uid, [adr_id], ['partner_id'])[0]['partner_id'][0]
  TypeError: 'bool' object is unsubscriptable


  Thanks,
  mra





References