Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

supplier by category

By
Sakher Fayyad
on 7/3/13, 8:12 AM 1,285 views

how i can arrange the suppliers by category

0
Sakher Fayyad
On 7/3/13, 8:21 AM

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

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

Ghanshyam Prajapati
on 7/3/13, 8:46 AM
0

Ghanshyam Prajapati

--Ghanshyam Prajapati--
1377
| 4 4 8
Pune, India
--Ghanshyam Prajapati--
OpenERP Developer
Ghanshyam Prajapati
On 7/3/13, 8:18 AM

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.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 7/3/13, 8:12 AM
Seen: 1285 times
Last updated: 3/16/15, 8:10 AM