Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Kanban Inherit project.project

By
Ronald Rubi
on 7/10/13, 5:48 PM 2,366 views

I want show other name in the kanban view, in the tree view works, but no in kanban.

This is my record:

    <record id="view_project_kanban_inherited" model="ir.ui.view">
        <field name="name">project.project.kanban.inherited</field>
        <field name="model">project.project</field>
        <field name="inherit_id" ref="project.view_project_kanban"/>
        <field name="arch" type="xml">
            <field name="name" position="replace">
                <field name="shortcut_name"/>
            </field>
        </field>
    </record>
1
Nico Bustillos
On 9/4/13, 11:21 AM

I believe you have to insert your field also within the template to be shown in view. So, besides the field you inserted, you may need to add a xpath reference to an element inside the template. There is an example of this in the project_timesheet addon:

<record id="view_project_kanban_inherited" model="ir.ui.view">
        <field name="name">project.project.kanban.inherited</field>
        <field name="model">project.project</field>
        <field name="inherit_id" ref="project.view_project_kanban"/>
        <field name="arch" type="xml">
            <field name="use_tasks" position="after">
                <field name="use_timesheets"/>
                <field name="hours_quantity"/>
                <field name="currency_id"/>
                <field name="partner_id"/>
            </field>
            <xpath expr="//div[contains(@class, 'oe_kanban_project_list')]" position="inside">
                <a t-if="record.use_timesheets.raw_value" style="margin-right: 10px"
                    name="open_timesheets" type="object"><field name="hours_quantity"/> Hours</a>
            </xpath>
        </field>
    </record>

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 7/10/13, 5:48 PM
Seen: 2366 times
Last updated: 3/16/15, 8:10 AM