Odoo Help


cannot access properties

on 10/24/13, 6:16 PM 829 views


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.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 10/24/13, 6:16 PM
Seen: 829 times
Last updated: 3/16/15, 8:10 AM