Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
3918 มุมมอง

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

ผู้เขียน

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

ผู้เขียน คำตอบที่ดีที่สุด

Accidentally found the answer: set customer = False

อวตาร
ละทิ้ง