Skip to Content
Menu
This question has been flagged
1 Reply
28611 Views

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
Discard

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
Discard
Author

Thanks @Jignesh Mehta & @NIKHIL KRISHNAN.

Related Posts Replies Views Activity
2
May 17
3029
0
Mar 18
2928
0
Apr 17
2133
1
Mar 25
462
0
Nov 24
820