forked from OCA/community-data-files
-
Notifications
You must be signed in to change notification settings - Fork 0
/
partner_view.xml
28 lines (28 loc) · 1.35 KB
/
partner_view.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record model="ir.ui.view" id="view_partner_form">
<field name="name">Partner form : short category name</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="arch" type="xml">
<field name="category_id" position="attributes">
<attribute name="context">{'partner_category_display': 'short'}</attribute>
<attribute name="options">{"always_reload": True}</attribute>
</field>
</field>
</record>
<!-- Only show the short category name, NACE titles are very long -->
<record model="ir.ui.view" id="res_partner_kanban_view">
<field name="name">Partner kanban : short category name</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.res_partner_kanban_view" />
<field name="arch" type="xml">
<field name="category_id" position="attributes">
<attribute name="context">{'partner_category_display': 'short'}</attribute>
<attribute name="options">{"always_reload": True}</attribute>
</field>
</field>
</record>
</data>
</openerp>