Reputation: 63
I have developed a module 'newpatient' which I am unable to install through a Compressed file folder. I have read the OpenERP dev. book as well as this blog on creation of new module. When installing after a copy-paste job from this blog, the module 'notebook' gets installed & working. I apply the same steps (Even checked the code n times now) to my module but still CAN'T get it installed. Even though I get the msg on ERP client ' Modules installed', the module is not in the 'Modules' list. What could be possibly wrong?
Here's the code. the newpatient.py
file:
from osv import fields, osv
import time
class newpatient(osv.osv):
_name = "Newpatient"
_description = "Creating new patient"
_columns = {'name':fields.char('Name',size=30,required=True),
'address':fields.char('Address',size=50,required=True),
}
newpatient()
The __init__.py
file:
import newpatient
The __openerp__.py
file:
{
"name" : "Newpatient",
"version" : "1.0",
"author" : "K Y",
"category" : "Generic Modules/Others",
"depends" : ["base"],
"init_xml" : [newpatient_view.xml],
"demo_xml" : [],
"update_xml" : [],
"installable": True,
"active": False
}
Really stuck. Would appreciate some help.
Upvotes: 5
Views: 1358
Reputation: 391
I'm not sure but try with
_name="newpatient"
To check if the module is installed, go to "Administration / Customisation / Database Structure" and look for newpatient (because it could be your view that isn't well formated)
Tell me if it works...
Upvotes: 5