OpenERP: css class not recognized -


please tell me what's wrong code. have developed module on openerp7, , i'am trying use css class existing in base.css file gave me error :

invalid xml view architecture!

i've updated module , web module contains base.css file. checked web module installed.i have restarted server.

here's how i've added class:

<field name="production" class="oe_edit_only"/> 

here's full form view:

<record model="ir.ui.view" id="view_ordres_fabrication_form">     <field name="name">ordres_fabrication.form</field>     <field name="model">ordres_fabrication</field>     <field name="type">form</field>     <field name="arch" type="xml">         <form string="ordres de fabrication">             <field name="numero"/>             <field name="commande_id" on_change="onchange_numero_bc(commande_id)" domain="[('etat','!=','terminé')]"/>              <field name="quantite"/>              <field name="piece_id"/>              <field name="numero_lot"/>              <field name="delai"/>              <field name="etat"/>             <separator string="quantités produites par opération"/>             <field name="production" class="oe_edit_only">                 <tree>                     <field name="operation_nom" context="{'group_by': ['operation_nom','of_num'] }"/>                     <field name="quantite_op"/>                 </tree>             </field>         </form>     </field> </record> 

and traceback:

2014-03-10 13:49:30,016 7080 error bd openerp.addons.base.ir.ir_ui_view: <string>:10:0:error:relaxngv:relaxng_err_noelem: expecting element diagram, got nothing 2014-03-10 13:49:30,016 7080 error bd openerp.addons.base.ir.ir_ui_view: <string>:10:0:error:relaxngv:relaxng_err_invalidattr: invalid attribute class element field 2014-03-10 13:49:30,016 7080 error bd openerp.addons.base.ir.ir_ui_view: <string>:2:0:error:relaxngv:relaxng_err_extracontent: element form has content: field 2014-03-10 13:49:30,029 7080 error bd openerp.tools.convert: parse error in file:///c:/program%20files%20(x86)/openerp%207.0-20140120-002508/server/server/openerp/addons/gestion_de_production/ordres_fabrication_view.xml:4:  <record model="ir.ui.view" id="view_ordres_fabrication_form">     <field name="name">ordres_fabrication.form</field>     <field name="model">ordres_fabrication</field>     <field name="type">form</field>     <field name="arch" type="xml">         <form string="ordres de fabrication">             <field name="numero"/>             <field name="commande_id" on_change="onchange_numero_bc(commande_id)" domain="[('etat','!=','termin&#233;')]"/>              <field name="quantite"/>              <field name="piece_id"/>              <field name="numero_lot"/>              <field name="delai"/>              <field name="etat"/>             <separator string="quantit&#233;s produites par op&#233;ration"/>             <field name="production" class="oe_edit_only">                 <tree>                     <field name="operation_nom" context="{'group_by': ['operation_nom','of_num'] }"/>                     <field name="quantite_op"/>                 </tree>             </field>         </form>     </field> </record> traceback (most recent call last): file "c:\program files (x86)\openerp 7.0-20140120-002508\server\server\.\openerp\tools\convert.py", line 847, in parse file "c:\program files (x86)\openerp 7.0-20140120-002508\server\server\.\openerp\tools\convert.py", line 814, in _tag_record file "c:\program files (x86)\openerp 7.0-20140120-002508\server\server\openerp\addons\base\ir\ir_model.py", line 940, in _update file "c:\program files (x86)\openerp 7.0-20140120-002508\server\server\openerp\addons\base\ir\ir_ui_view.py", line 214, in write file "c:\program files (x86)\openerp 7.0-20140120-002508\server\server\.\openerp\osv\orm.py", line 4224, in write file "c:\program files (x86)\openerp 7.0-20140120-002508\server\server\.\openerp\osv\orm.py", line 1561, in _validate except_orm: ('validateerror', u'une erreur est apparue lors de la validation du/des champ(s) arch: invalid xml view architecture!') 2014-03-10 13:49:30,030 7080 error bd openerp.netsvc: validateerror une erreur est apparue lors de la validation du/des champ(s) arch: invalid xml view architecture! 

traceback (most recent call last):

try use 7.0 style pls (no need field type , use attribute version on form-tag:

<record model="ir.ui.view" id="view_ordres_fabrication_form">     <field name="name">ordres_fabrication.form</field>     <field name="model">ordres_fabrication</field>     <field name="arch" type="xml">         <form string="ordres de fabrication" version="7.0">             <field name="numero"/>             <field name="commande_id" on_change="onchange_numero_bc(commande_id)" domain="[('etat','!=','terminé')]"/>              <field name="quantite"/>              <field name="piece_id"/>              <field name="numero_lot"/>              <field name="delai"/>              <field name="etat"/>             <separator string="quantités produites par opération"/>             <field name="production" class="oe_edit_only">                 <tree>                     <field name="operation_nom" context="{'group_by': ['operation_nom','of_num'] }"/>                     <field name="quantite_op"/>                 </tree>             </field>         </form>     </field> </record> 

hope you


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -