Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
28619 Prikazi

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
Opusti

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
Opusti
Avtor

Thanks @Jignesh Mehta & @NIKHIL KRISHNAN.

Related Posts Odgovori Prikazi Aktivnost
2
maj 17
3037
0
mar. 18
2932
0
apr. 17
2141
1
mar. 25
493
0
nov. 24
832