The fields date_from and date_upto could be accessed with a simple 
self.browse(). For a function field the argument list should be like this: 
(self, cr, uid, ids, field_name, arg, context=None)
Just make a check and if the dates are not filled in return an empty selection. 
This will happen when the form is loaded and a dates are empty.
Then you could call _get_available_conference_halls with an on_change in the 
view to refill the selection when the dates are changed.




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

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

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


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

Reply via email to