Hi, I have a many2many in a classe, I'm trying to do something like this: I want to create groups of hr.employee.category categories so I tried to make a one2many relation but in the the webclient the one2many widjet force to create a new category to associate and not to select from that ones already created so I change to a many2many relation to be able to select form a list of already created categories.
Now I want to filter this list to hide the categories already chosen. I think that is possible to do this with the "domain" attribute but I don't know how. module.py class employee_cat_groups(osv.osv): _name = 'employee.cat_groups' _columns = { 'name':fields.char('Nome', size=255, required=True), 'categories_id': fields.many2many('hr.employee.category', 'employee_cat_groups_hr_employee_category_rel', 'group_id', 'category_id', 'Categories'), } employee_cat_groups() can any one help out on this? thanks -------------------- m2f -------------------- -- http://www.openobject.com/forum/viewtopic.php?p=43521#43521 -------------------- m2f -------------------- _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman2/listinfo/tinyerp-users
