Skip to Content
Menu
This question has been flagged
2 Replies
4769 Views

how i can arrange the suppliers by category

Avatar
Discard
Best Answer

Hi Sakher,

Try Following,

class res_partner(osv.osv):
      _inherit = 'res.partner'
      _order = 'category_id'

you can also arrange suppliers by ascending order or by descending order.

class res_partner(osv.osv):
      _inherit = 'res.partner'
      _order = 'category_id desc'

Hope it work for you.

Avatar
Discard
Author Best Answer

thanx for reply,,

the problem exactly.. if i made anew category for supplier,, i write a wrong name,,

how i can change the name,, or change the mother of category ? i work in openerp 7

Avatar
Discard

i cant understand your requirement. please explain me exactly your problem.

Related Posts Replies Views Activity
0
Nov 22
3559
1
Dec 24
2382
2
Nov 23
3008
0
Apr 23
1634
0
Nov 21
2078