Hello everybody , i work with openerp v 7 i want to add a field , i've created a module named "champ" that contains the following files :
__init__.py
import test
__openerp__.py
{
"name" : "Test",
"version" : "7",
"author" : "me",
"website" : "",
"category" : "General",
"depends" : ["base"],
"description" : "",
"init_xml" : ["test_view.xml"],
"demo xml" : [],
"update_xml" : [ "test_view.xml"],
"installable": True,
"active": False,
"certificate" : ""
}
test.py
from openerp.osv import fields, osv
class Partner(osv.osv):
_inherit = 'res.partner'
_columns = {
'champ' : fields.char('champ', size=128),
}
Partner()
test_view.xml
<?xml version="1.0"?>
<openerp>
<data>
<record model="ir.ui.view" id="view_partner_form2">
<field name="name">res.partner.form.inherit2</field>
<field name="model">res.partner</field>
<field name="type">form</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<field name="phone" position="before">
<field name="champ"/>
</field></field>
</record>
</data>
</openerp>
the module is imported with success , but it is impossible for me to see my new fields (champ) When I redirected to the new module 'test' I can not find the extensions 'pyc' is that it may be my problem of this (compilation)?