İçereği Atla
Menü
This question has been flagged
1 Cevapla
28613 Görünümler

What is the problem with this code? I couldn't understand the problem.

Here I'm inheriting view from other module.

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
  <record id="view_form_todo_task_inherit_tree" model="ir.ui.view">
      <field name="name">Todo Task Form - User Extension</field>
      <field name="model">todo.task</field>
      <field name="inherit_id" ref="todo_app.view_form_todo_task" />
      <field name="arch" type="xml">
          <!-- <field name="state" position="after">
              <field name="de" />
          </field> -->
      </field>
  </record>
</odoo>
Avatar
Vazgeç

Hello Abdul Halim, because of comments this error is occurred. Remove comments and try update it. Thanks,

Best Answer

<?xml version="1.0" encoding="UTF-8"?>

<odoo>

  <record id="view_form_todo_task_inherit_tree" model="ir.ui.view">

      <field name="name">Todo Task Form - User Extension</field> 

      <field name="model">todo.task</field>

      <field name="inherit_id" ref="todo_app.view_form_todo_task" />

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

          <field name="state" position="after">

              <field name="de" />

          </field>

      </field>

  </record>

</odoo>


Try this, it may help you.


I believe that there is a module named "todo_app". it has a view too "view_form_todo_task".

Avatar
Vazgeç
Üretici

Thanks @Jignesh Mehta & @NIKHIL KRISHNAN.

Related Posts Cevaplar Görünümler Aktivite
2
May 17
3029
0
Mar 18
2928
0
Nis 17
2135
1
Mar 25
476
0
Kas 24
820