Skip to Content
Menu
This question has been flagged

So, how to add custom field to contacts kanban view by module?

In my module in view.xml I added next code:

<record id="" model="ir.ui.view">

            <field name="name">res.partner.kanban.view.inherit.card.number.field</field>

            <field name="model">res.partner</field>

            <field name="inherit_id" ref="base.res_partner_kanban_view"/>

            <field name="arch" type="xml">

                <xpath expr="//div[@class='oe_kanban_partner_links']" position="after">

                    <div t-if="record.card_number.raw_value">Card Number: <field name="card_number"/></div>

                </xpath>

            </field>

        </record>

But card number field not appear in my contacts kanban view (after each modifing I click upgrade button in my module). What I'm doing wrong?

Avatar
Discard
Related Posts Replies Views Activity
0
Jan 19
9425
1
Mar 18
3024
1
Nov 24
102
5
Jul 24
86787
1
Dec 23
1811