Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
10409 Lượt xem

Hi all,

I have odoo11 installed on aws . I am trying to add field's values in "kanban" same as (product kanban view) but I get the error "Uncaught TypeError: Cannot read property 'tag' of undefined" when trying to define kanban view the code below. 

My question is how to solve this issue? or what is the correct way to do that? 



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

      <field name="name">Servays.kanb</field>

      <field name="model">customer_analysis.anaylsis</field>

      <field name="priority">10</field>

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

        <kanban>

              <field name="customer"/>

              <field name="represent"/>

              <field name="phone"/>

              <field name="location"/>

              <field name="position"/>

              <field name="package"/> 

        </kanban>

      </field>

    </record> 



 <record model="ir.actions.act_window" id="customer_analysis.action_window">

      <field name="name">Servays</field>

      <field name="res_model">customer_analysis.anaylsis</field>

      <field name="view_mode">tree,kanban,form,pivot</field>

       <!--<field name="view_type">form</field>-->

            <field name="view_id" ref="customer_analysis.tree"/>

            <field name="help" type="html">

              <p class="oe_view_nocontent_create">

                Create an Analysis, a step of a new opportunity.

              </p>

        </field>

    </record>


Ảnh đại diện
Huỷ bỏ

Make sure you have added mention fields in your python(.py class file) file.

Fields are: customer, represent, phone, location, position, package

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 11 18
5209
1
thg 3 18
3744
2
thg 9 23
8001
1
thg 6 23
2584
1
thg 11 22
3250