hello everyone , i created a new module , i can install it , but the problem is that i cant see the entries on my tree .. Plz plz plz help me
medicalcase.py
from openerp import addons
from osv import fields, osv
import time
class medicalcase(osv.osv):
_name='medicalcase'
_description='dossier medical du patient'
_columns={
#info general
'name' : fields.char('Numero d`adhesion ', size=30),
'category_sanguine' : fields.char('Categorie sanguine', size=30, ),
# maladies
'maladie_status' : fields.char('Status de la maladie', size=30),
'date_diagnostique' : fields.date('date de Diagnostique'),
'age_diagnostique' : fields.char('Age de diagnostique', size=30),
'severite_maladie' : fields.char('Severite de la maladie', size=30),
'remarque' : fields.text('Remarque'),
'retablie' : fields.date('Date de retablissement'),
'nom_medecin' : fields.char('Nom du medecin', size=30),
'alergies' : fields.selection([('Oui','oui'), ('Non','non')],'etes vous allergique?'),
'allergy_type' : fields.char('Type d`alergie ', size=30),
'pregnancy_warning' : fields.selection([('Oui','oui'), ('Non','non')],'etes vous enceinte?'),
'pregnancy_week' : fields.char('Semaine de grossesse ', size=30),
'on_terapie' : fields.selection([('Oui','oui'), ('Non','non')],'etes vous sous therapie?'),
'start_terapie' : fields.date('date debut de terapie '),
'end_terapie' : fields.date('date fin de terapie'),
'description_terapie' : fields.text('description de la terapie'),
'extra_info' : fields.text('Extra informations sur le patient'),
# traitement
'medicament' : fields.char('medicament', size=30),
'active' : fields.boolean('active'),
'debut_traitement' : fields.date('Date de debut de traitement'),
'fin_traitement' : fields.date('Date de fin de traitement'),
'medecin' : fields.char('medecin prescrivant le traitement', size=30),
'indication' : fields.text('Des indications'),
'tretement_continu' : fields.boolean('traitement continu ?'),
'tretement_discontinu' : fields.boolean('traitement discontinu ?'),
'reason_dis' : fields.text('raison de discontinuite ? '),
'dose' : fields.char('Dosage', size=30),
'unit_dosage' : fields.char('unite de dosage ', size=30),
'voie_administration' : fields.char('voie d`administration ', size=30),
'periode_traitement' : fields.char('periode de traitement ', size=30),
'frequency' : fields.char('frequence ', size=30),
'notes' : fields.text('Notes'),
}
medicalcase()
medical_case.xml
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<menuitem name="Gestion medical" id="menu_patients_parent"/>
<menuitem name="Gestion medical" id="menu_patients_parent1" parent="menu_patients_parent"/>
<menuitem name="Divers" id="menu_patients_parent2" parent="menu_patients_parent"/>
<record model="ir.ui.view" id="medical_tree_view">
<field name="name">medical.tree</field>
<field name="model">medical</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="medical" version="7.0">
<field name="id"/>
<field name="name"/>
</tree>
</field>
</record>
<record model="ir.ui.view" id="medical_form_view">
<field name="name">medical.form</field>
<field name="model">medical</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="medical" version="7.0">
<sheet>
<notebook>
<page string=" Maladies">
<group>
<group string=" Information generale">
<field name="name"/>
<field name="maladie_status"/>
<field name="date_diagnostique"/>
<field name="age_diagnostique"/>
<field name="severite_maladie"/>
<field name="remarque"/>
<field name="retablie"/>
<field name="nom_medecin"/>
</group>
<group string="allergies">
<field name="alergies"/>
<field name="allergy_type"/>
</group>
<group string="Grossesses">
<field name="pregnancy_warning"/>
<field name="pregnancy_week"/>
</group>
<group string="Terapie">
<field name="on_terapie"/>
<field name="start_terapie"/>
<field name="end_terapie"/>
<field name="description_terapie"/>
</group>
<group string="Extra informations">
<field name="extra_info"/>
</group>
</group>
</page>
<page string=" Traitements">
<group>
<group string=" Medicament et traitement">
<field name="medicament"/>
<field name="active"/>
<field name="debut_traitement"/>
<field name="fin_traitement"/>
<field name="medecin"/>
<field name="indication"/>
<field name="tretement_continu"/>
<field name="tretement_discontinu"/>
<field name="reason_dis"/>
</group>
<group string=" Dosage">
<field name="dose"/>
<field name="unit_dosage"/>
<field name="voie_administration"/>
<field name="periode_traitement"/>
<field name="frequency"/>
</group>
<group string="Extra informations">
<field name="notes"/>
</group>
</group>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record model="ir.actions.act_window" id="tens_form">
<field name="name">medical</field>
<field name="res_model">medical</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem name="Dossier Medical" parent="menu_patients_parent1" id="notebook_menu" action="tens_form" sequence="1"/>
</data>
</openerp>
plzz help , i can't see the entries on the list view!!!