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.

1

replace field in kanban view

By
Sebastian Orzechowski
on 4/11/14, 6:07 AM 2,017 views

Hello. I writing my module and i must replace one field in kanban view of fleet.vehicle . I want do in by inheriting fleet.fleet_vehicle_kanban view.

0

I found solution.

<record model="ir.ui.view" id="view_vehicle_kanban2">
        <field name="name">fleet.vehicle.kanban.inherit</field>
        <field name="model">fleet.vehicle</field>
        <field name="inherit_id" ref="fleet.fleet_vehicle_kanban"/>
        <field name="arch" type="xml">
            <xpath expr="/kanban/field[@name='driver_id']" position="replace">
                <field name="employee_id"/>
            </xpath>
        </field>
    </record>

But i cant see field employee_id on kabnan view. When I debug "view_vehicle_kanban2" view i have:

 <field name='driver_id'>
        <view view_id = 404>            
            <xpath>
            <field name='employee_id'>

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: 4/11/14, 6:07 AM
Seen: 2017 times
Last updated: 3/16/15, 8:10 AM