Creating a module, error on install
HI, i'm currently trying to create a dummy form to learn how to create a module, but I get errors when I try installing the module
Error:
File "/.../src/
raise IOError, 'File not found : '+str(name)
IOError: File not found : /.../src/
py:
from osv import fields, osv
# Test to create a module
class clothes (osv.osv):
_name= "medical.patient"
_inherit = "medical.patient"
_description= "tests"
_columns = {
'name_test' : fields.char ('Name Test', size=16),
'shirt_color' : fields.char ('Shirt colors', size=8, help="Shirt"),
'pants_color' : fields.char ('Pants colors', size=2, help="Pants"),
}
clothes ()
-------
__terp__
# -*- encoding: utf-8 -*-
{
'name' : 'Medical : testform',
'version' : '1.0',
'author' :
'category' : 'Generic Modules/Others',
'depends' : ['medical'],
'description' : """
This module was created to test the functionnalities of OpenERP and the medical module
""",
"website" : "http://
"init_xml" : [],
"update_xml" : ["medical_
"active": False
}
-------
import medical_testform
-------
ir.model.access.csv (Can't find any documentation on this file, so I'm not sure about the following two lines..
id,"name"
access_
-------
xml
<?xml version="1.0" ?>
<openerp>
<data>
<!-- Include the TestForm_Clothing page into the Patient History -->
<!-- Inheriting from Patient -->
<record model="ir.ui.view" id="medical_
<field name="name"
<field name="model"
<field name="inherit_id" ref="medical.
<field name="type"
<field name="arch" type="xml">
<page string="TestForm">
<field name="name_
<newline/>
<field name="shirt_
<newline/>
<field name="pants_
<newline/>
</page>
</field>
</record>
</data>
</openerp>
what's the problem?
thanks
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- OpenERP Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- openT
- Solved:
- Last query:
- Last reply: