Error "Can't find field 'ups_pickup_type'" when opening sales order form

Asked by chveTarek Omar

Release Number: 6.1

Revision Number: 6.1.1

Client Used (release number/rev # if appropriate): Web Client 6.1

Platform (linux, windows, Mac os): Ubuntu 12.04

Context of what you were doing: Opening sales order form

What you did expect to happen: After installing shipping_api version 6.1.1.37 and shipping_api_ups version 6.1.1.49, sales order does not open.

Traceback:

2012-11-15 15:24:58,634 1138 ERROR ? openerp.osv.orm: Can't find field 'ups_pickup_type' in the following view parts composing the view of object model 'sale.order':
 * sale.order.view_form.ups

and

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2012-11-15 15:24:58,635 1138 ERROR ? openerp.netsvc: View error
Can't find field 'ups_pickup_type' in the following view parts composing the view of object model 'sale.order':
 * sale.order.view_form.ups

In the logs.

Thanks in advance,

Tarek

Question information

Language:
English Edit question
Status:
Answered
For:
OpenERP-USA Localization Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
chveTarek Omar (tarek-omar) said :
#1

More information:

Installed version 6.1.1.41 of shipping_api

and

Version 6.1.1.52 of shipping_api_ups and still receive the same error.

Thanks,

Tarek

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#2

Tarek,

Please note that there is no error actually.

You only need to restart the server once and upgrade the module shipping_api_ups.

Hope this helps.

Regards,
Serpent Consulting Services.

Revision history for this message
D.P. Hicks (dphicks) said :
#3

Tarek,

The restart of your system will probably correct the error you're seeing there but what it will not correct is that shipping_api and shipping_api_ups has not been ported to the 6.1 code stream. NPG created this for clients running on the 6.0 code stream and have had interested parties requesting this get moved up but it has not occurred as of today.

NovaPoint Group

Revision history for this message
Brett Lehrer (brett-lehrer) said :
#4

Using the code released by SCS on 2012/12/04 for OpenERP 6.1 and this error still occurs after restarting the server and upgrading the shipping_api_ups module. Shouldn't be a huge surprise, since that merge proposal doesn't even include an update to shipping_api_ups.

At line 11 of sale_view.xml in the main shipping_api_ups module, it looks like a poorly formatted xpath expression. It's finding the first instance of a separator with the string "Notes", which is within the individual order lines popup menu. That's not where it's supposed to be, it should be in the main sales order record. Try changing this:

<xpath expr="//separator[@string='Notes']" position="before" >

to this:

<xpath expr="/form/notebook/page/separator[@string='Notes']" position="before" >

After saving that change, restart the server and upgrade the shipping_api_ups module to force a reload of the XML files (views), and that will fix the problem.

Can you help with this problem?

Provide an answer of your own, or ask chveTarek Omar for more information if necessary.

To post a message you must log in.