Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
3830 Переглядів

I'm trying to add the state field into the kanban display for partners.  It isn't appearing, and I am not getting any error messages, so I looked to make sure that it is actually appearing in the "Manage Views" list.  It does appear, and has a lower sequence (priority) number than any other views that inherit from "res.partner.kanban", but I also noticed that it is listed as type "Qweb".  My code is below:

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
     
    <record id="my_partner_kanban_view" model="ir.ui.view">
        <field name="name">my_partner_kanban_view</field>
        <field name="model">res.partner</field>
        <field name="inherit_id" ref="base.res_partner_kanban_view"/>
        <field name="priority" eval="5"/>
        <field name="arch" type="xml">
            <field name="city" position="after">
                <field name="state_id"/>
            </field>
        </field>
    </record>
    
</data>
</openerp>

Is there some other field that will specify the view type as kanban?

Аватар
Відмінити
Автор Найкраща відповідь

I guess it's okay that it shows up as "Qweb" and not "Kanban".  Once you get your field selection syntax down right, it seems to work just fine.  Maybe it's because the fields I'm modifying are inside template tags, defined inside the parent kanban view.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
бер. 15
4681
5
черв. 20
6735
0
серп. 16
3115
1
квіт. 16
4948
0
лют. 16
5048