Hi, I need to populate the list of a selection field based on the value of some other fields in the same table.
For example: class conference_hall_booking_wizard(osv.osv_memory): def _get_available_conference_halls(self, cr, uid, context): # return a conference hall list filtered by date_from, date_to # how to access date_from, date_to? _columns = { 'date_from': fields.datetime('Booked from', required=True), 'date_upto': fields.datetime('Booked upto', required=True), 'conf_hall_id' : fields.selection(_get_available_conf_halls, 'Choose'), How do I access date_from and date_to in _get_available_conference_halls? Needing help. thanks, ------------------------ Sanjay RAD Solutions Private Limited sanjay at radsolutions co in -------------------- m2f -------------------- -- http://www.openobject.com/forum/viewtopic.php?p=31419#31419 -------------------- m2f -------------------- _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman/listinfo/tinyerp-users
