Aah! I had a similar problem. I solved it by adding an extra field to res.partner (call it main_partner_category_id). For clients I link it to 'Customers' category while for Vendors I link it to 'suppliers' category. In the purchase order view I restrict the domain to main_partner_category_id for suppliers (e.g. <field name="partner_id" domain="[('main_partner_category_id','=',11)]" /> ).
Not really an elegant solution (esp. because I am hand-coding the id), but it works. If there is another way of looking up supplier category that will be super. Thanks. Mugoma. [EMAIL PROTECTED] wrote: > [quote="okomba"]You mean renaming table field? You can do that from the model > (res.partner). Check partner.py. > Mugoma. > yes.... > but actually our requirement is if u raise a purchase order there we need to > provide the partner. In that search it wil get all the partners. but client > need only supplier details. > regards > kbreddy. > -------------------- m2f -------------------- > -- > http://www.openerp.com/forum/viewtopic.php?p=24393#24393 > -------------------- m2f -------------------- > _______________________________________________ > Tinyerp-users mailing list > http://tiny.be/mailman/listinfo/tinyerp-users _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman/listinfo/tinyerp-users