Community mailing list archives

community@mail.odoo.com

Re: Odoo 9 : QWeb2: Template 'kanban-box' not found

by
Himanshu
- 04/14/2016 08:38:32
I think your xml is incorrect ,correct xml like this


<record model="ir.actions.act_window" id="product.product_kanban_view">
        <field name="name">Product Kanban</field>
        <field name="res_model">product.product</field>
        <field name="type">ir.actions.act_window</field>
        <field name="view_mode">kanban</field>
        <field name="view_type">form</field>
        <field name="arch" type="xml">
        </field>
</record>

Thanks & Regards
Himanshu

On Thu, Apr 14, 2016 at 4:53 PM, Yassine Teimi <yteimi01@gmail.com> wrote:
Hello,

I'm trying to create a kanban view for my model, so I did the following on xml side :


<record model="ir.ui.view" id="product.product_kanban_view">
        <field name="name">Product Kanban</field>
        <field name="model">product.product</field>
        <field name="type">kanban</field>
        <field name="arch" type="xml">
            <kanban>
                <field name="color"/>
                <field name="type"/>
                <field name="product_image"/>
                <field name="list_price"/>
                <templates>
                    <t t-name="kanban-box">
                        <!-- qweb code -->
                    </t>
                </templates>
            </kanban>
        </field>
</record>

But I'm getting the following error :  QWeb2: Template 'kanban-box' not found

Any hint guys ? I'm stuck. 

Thanks.


--

Cordialement

Yassine TEIMI

Consultant & Odoo Project Manager
TEL : +212 6-87 71 41 18

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe