[6.1] shipping_api_ups: 'ups_account_shipping_service' object has no attribute 'ups_account_id'

Bug #1092688 reported by Brett Lehrer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP-USA Localization
Fix Released
Low
Serpent Consulting Services

Bug Description

OpenERP 6.1
Revision: server (4320), addons (7107), web (2499)
Client: Web
Platform: Linux

When attempting to confirm/complete a delivery shipping via UPS, the following error occurs upon clicking the validate button:

  File "/opt/openerp/6.1/merge/shipping_api_ups/stock.py", line 166, in action_done
    vals['logis_company'] = service_type_obj.ups_account_id.logistic_company_id.id
AttributeError: 'ups_account_shipping_service' object has no attribute 'ups_account_id'

This is fixed by changing line 166 in shipping_api_ups/stock.py to:

vals['logis_company'] = service_type.ups_account_id.logistic_company_id.id

Related branches

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) wrote :

Brett,

Let me propose a merge,we did a similar fix.

Thanks.

Changed in openerp-usa:
status: New → Confirmed
importance: Undecided → Low
assignee: nobody → Serpent Consulting Services (serpent-consulting-services)
Changed in openerp-usa:
status: Confirmed → Fix Committed
Changed in openerp-usa:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.