Odoo Help

Welcome!

This community 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.

0

cannot access properties

By
Drew
on 10/24/13, 6:16 PM 499 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.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

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