For populating the selection box, I am writing something like

    def _get_resources(self, cr, uid, context):

        cr.execute("""SELECT DISTINCT id
                      FROM   booking
                      WHERE  specification_id = %s
                        AND  booked_from <s> %s
                        AND  cancelled_by IS NULL""" %
                        (context['specification_id'],
                        context['booked_to'],
                        context['booked_from']))
        return cr.fetchall() or []

But it comes "key error" in context. Needing help.

thanks,

------------------------
Sanjay
RAD Solutions Private Limited
sanjay at radsolutions co in




-------------------- m2f --------------------

--
http://www.openobject.com/forum/viewtopic.php?p=31643#31643

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to