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

Suppliers tree view without contacts

v7
By
Oscar Cascante F
on 8/14/13, 1:56 PM 987 views

Hello,

When i create a supplier company with one or more contacts, the suppliers tree view shows each contact as a supplier, ej: <computer inc="">,<1 contact name> <computer inc="">,<2 contact name> ......

but that is not true, the contacts are not suppliers, only the companies. Looking the database, res_partner file have a "is_company" field. There exists some way of limiting the tree view to only shows the registers with this field = True?

Thanks.

1

Hiral Patel (hip)

--Hiral Patel (hip)--
Tiny ERP Pvt Ltd
http://www.odoo.com
913
| 2 1 5
India
--Hiral Patel (hip)--


Hiral Patel (hip)
On 8/16/13, 11:05 AM

Hello,

In server you can find a file res_partner_view.xml(server/openerp/addons/base/res/res_partner_view.xml). There is a record with id="action_partner_supplier_form". Here, In domain add domain like :

[('is_company','=',1)]

it will show's the suppliers where is_company=True.

Thank You.

Thanks for your help

Oscar Cascante F
on 8/16/13, 12:24 PM
0
Open Net Sarl
On 8/15/13, 5:22 AM

Create a menu leading to an action In this action you can use 'Domain value' [('is_company','=',False)] OR Context Value {"search_default_customer":1}

Could you give me more details how to do this? I am newbie and i have just 3 weeks learning openerp. Thanks for your help

Oscar Cascante F
on 8/15/13, 10:55 AM

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: 8/14/13, 1:56 PM
Seen: 987 times
Last updated: 3/16/15, 8:10 AM