Hi
I am trying to learn how to make a new module
I was reading previous post about this topic in this forum, and in other sources
Here are my first steps
__init__.py
import mymodule
__terp__.py
{
'name': ' - Reporting',
'version': '1.0',
'category': 'Generic Modules/Accounting',
'description': """Reporte .""",
'author': 'nnnnn',
'website': 'http://www.openerp.com',
'depends': [],
'init_xml': [],
'update_xml': ['mymodule_view.xml'],
'demo_xml': [],
'installable': True,
'active': False,
}
mymodule_view.xml
<xml>
<openerp>
<data>
</field>
<record>
<field>mymodule.form</field>
<field>mymodule</field>
<field>form</field>
<field>
<form>
<field>
</form>
</field>
</record>
<les>
<record>
<field>mymodule</field>
<field>mymodule</field>
</record>
<menu>
<menuitem>
</data>
</openerp>
mymodule.py
from osv import osv,fields
class my_module(osv.osv):
_name='my_module'
_columns={
'name' : fields.char('Champs text',size=40),
}
my_module()
after all that when I tried to install the module, I had :
Error occurred while validating the field(s) res_model,src_model: Invalid model
name in the action definition.
I reviewed several times my code and I couldn't find my fault, could you help
me ?
-------------------- m2f --------------------
--
http://www.openobject.com/forum/viewtopic.php?p=55440#55440
-------------------- m2f --------------------
_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users