Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
29026 Visualizações

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
Cancelar

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

Melhor resposta

<?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
Cancelar
Autor

Thanks @Jignesh Mehta & @NIKHIL KRISHNAN.

Publicações relacionadas Respostas Visualizações Atividade
2
mai. 17
3367
0
mar. 18
3273
0
abr. 17
2487
1
mar. 25
1238
0
nov. 24
1453