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

How to show only relevant fields for res.partner and a given type (billing address, shipping address, …)?

By
Odiver
on 10/5/16, 2:36 AM 122 views

When browsing addresses via the contacts menu or when creating addresses by 'edit and create' in case of relational fields, how to hide all irrelevant fields? A billing address should not have meetings, invoices, a job description, contact addresses, ...

Since this is the default Odoo beviour I hesitate to rewrite the whole partner view by inheriting it and do the whole work myself. This should belong to Odoo. But where ist the switch to show only relevant fields depending on the partner type?

What I know:

res.partners class's fields:

company_type is 'company' or 'person'

is_company is true or false

Artem
on 10/5/16, 6:52 AM

yes, Artem, and exactly those fields are not applied to filter out irrelevant fields in openerp/addons/base/res/res_partner_view.xml

Odiver
on 10/5/16, 10:56 AM
0
Odiver
On 11/30/16, 8:35 AM

Accidentally found the answer: set customer = False

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

1 follower(s)

Stats

Asked: 10/5/16, 2:36 AM
Seen: 122 times
Last updated: 11/30/16, 8:35 AM