This question has been flagged
2552 Views

Hi,

I'm new to OpenERP, I have problem accessing properties (fields) of object/record:

def fields_view_get(self, cr, uid, view_id=None, view_type='form', context={}, toolbar=False):
    result = super(extended_shipments_wz, self).fields_view_get(cr, uid, view_id, view_type, context=context, toolbar=toolbar)
    shipment_id = self._get_active_id(cr, uid, view_id, context)
    shipment_obj = self.pool.get('stock.picking.in').browse(cr, uid, shipment_id)
   #some more code 
   #shipment_obj.origin, etc... fails
   return result

shipment_id gives me correct ID. shipment_obj is returned (not null) when I try to access any shipment_obj properties (just for testing) it gives me error:

any help is appreciated...

LINE 1: ...ng.id FROM "stock_picking" WHERE stock_picking.id IN (false)... ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.

Avatar
Discard