This question has been flagged
1 Reply
5179 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.

Avatar
Discard
Best Answer

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

Avatar
Discard
Author

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

Author

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