Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Error: View type 'form' is not supported in One2Many.

By
charlesraj
on 10/23/13, 10:07 AM 1,833 views

after installing the CMM module . while clicking on one of the create button in that module these error where displayed.

Openerp client error Error: View type 'form' is not supported in One2Many.

how this can be solved.

1
joseph d'souza
On 10/23/13, 3:43 PM

Problem is raise due to one2many field . Need to check your xml file where on2many field is define .

Two way you can resolve this error by your self

  1. one remove the form tag in mode like this

<field name="one2many_field_name" mode="tree,form">

it should be

<field name="one2many_field_name" mode="tree">
  1. If you want to use tree and form in one2many field then you can use it by this way also

    <field name="one2many_field_name" colspan="4" nolabel="1" height="260"> <tree string="test"> <field name="field_one"/> <field name="field_two"/>
    </tree>

    <form string="Test"> <field name="field_one"/> <field name="field_two"/> </form>

    </field>

Thanks

dsouzajoseph199@gmail.com

hi joseph . now a problem while click on the create button in All preventive maintaince the following error occurs,. Error: NameError: name 'int' is not defined

charlesraj
on 10/25/13, 6:50 AM

Hi joseph now i solve this ..by removing the colors="blue:int(days_left)&lt;=days_warn_period and int(days_left)&gt;0;red:int(days_left)&lt;=0;" from the tree view

charlesraj
on 10/25/13, 9:25 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 10/23/13, 10:07 AM
Seen: 1833 times
Last updated: 3/16/15, 8:10 AM