Skip to Content
Odoo मेन्यू
  • Sign in
  • मुफ़्त में आज़माएं
  • ऐप्लिकेशन
    फ़ाइनेंस
    • अकाउंटिंग
    • इनवॉइसिंग
    • एक्सपेंस
    • स्प्रेडशीट (बीआई)
    • डॉक्यूमेंट्स
    • साइन
    सेल्स
    • सीआरएम
    • सेल्स
    • पीओएस शॉप
    • पीओएस रेस्टोरेंट
    • सब्सक्रिप्शन
    • रेंटल
    वेबसाइट
    • वेबसाइट बिल्डर
    • ई-कॉमर्स
    • ब्लॉग
    • फ़ोरम
    • लाइव चैट
    • ई-लर्निंग
    सप्लाई चेन
    • इन्वेंट्री
    • मैन्युफ़ैक्चरिंग
    • पीएलएम
    • परचेज़
    • मेंटेनेंस
    • क्वालिटी
    मानव संसाधन
    • कर्मचारी
    • रिक्रूटमेंट
    • टाइम ऑफ़
    • अप्रेज़ल
    • रेफ़रल
    • फ़्लीट
    मार्केटिंग
    • सोशल मार्केटिंग
    • ईमेल मार्केटिंग
    • एसएमएस मार्केटिंग
    • इवेंट
    • मार्केटिंग ऑटोमेशन
    • सर्वे
    सेवाएं
    • प्रोजेक्ट
    • टाइमशीट
    • फ़ील्ड सर्विस
    • हेल्पडेस्क
    • प्लानिंग
    • अपॉइंटमेंट
    प्रॉडक्टिविटी
    • डिस्कस
    • अप्रूवल
    • आईओटी
    • वीओआईपी
    • नॉलेज
    • WhatsApp
    तीसरे पक्ष के ऐप्लिकेशन Odoo स्टूडियो Odoo क्लाउड प्लेटफ़ॉर्म
  • इंडस्ट्री
    रीटेल
    • बुक स्टोर
    • क्लोदिंग स्टोर
    • फ़र्नीचर स्टोर
    • ग्रॉसरी स्टोर
    • हार्डवेयर स्टोर
    • टॉय स्टोर
    Food & Hospitality
    • बार और पब
    • रेस्टोरेंट
    • फ़ास्ट फ़ूड
    • Guest House
    • बेवरिज डिस्ट्रीब्यूटर
    • होटल
    रियल एस्टेट
    • Real Estate Agency
    • आर्किटेक्चर फ़र्म
    • कंसट्रक्शन
    • एस्टेट मैनेजमेंट
    • गार्ड्निंग
    • प्रॉपर्टी ओनर असोसिएशन
    कंसल्टिंग
    • अकाउंटिंग फ़र्म
    • Odoo पार्टनर
    • मार्केटिंग एजेंसी
    • लॉ फ़र्म
    • टैलेंट ऐक्विज़िशन
    • ऑडिट & सर्टिफ़िकेशन
    मैन्युफ़ैक्चरिंग
    • टेक्सटाइल
    • Metal
    • फ़र्नीचर
    • फ़ूड
    • Brewery
    • कॉर्पोरेट गिफ़्ट
    हेल्थ & फिटनेस
    • स्पोर्ट्स क्लब
    • आईवियर स्टोर
    • फिटनेस सेंटर
    • वेलनेस प्रैक्टिशनर
    • फॉर्मेसी
    • हेयर सैलून
    Trades
    • Handyman
    • आईटी हॉर्डवेयर और सपोर्ट
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    अन्य
    • Nonprofit Organization
    • एन्वायरमेंटल एजेंसी
    • बिलबोर्ड रेंटल
    • फ़ोटोग्राफी
    • बाइक लीजिंग
    • सॉफ़्टवेयर रीसेलर
    Browse all Industries
  • कम्यूनिटी
    सीखें
    • ट्यूटोरियल्स
    • दस्तावेज़
    • सर्टिफ़िकेशन
    • ट्रेनिंग
    • ब्लॉग
    • पॉडकास्ट
    शिक्षा को बढ़ावा दें
    • एजुकेशन प्रोग्राम
    • स्केल अप! बिजनेस गेम
    • Odoo के ऑफ़िस में आएं
    सॉफ़्टवेयर पाएं
    • डाउनलोड
    • वर्शन की तुलना करें
    • रिलीज़
    साथ मिलकर काम करें
    • Github
    • फ़ोरम
    • इवेंट
    • अनुवाद
    • पार्टनर बनें
    • Services for Partners
    • अपना अकाउंटिंग फ़र्म रजिस्टर करें
    सेवाएं पाएं
    • पार्टनर ढूंढें
    • अकाउंटेंट खोजें
    • सलाहकार की मदद लें
    • इम्प्लिमेंटेशन सेवाएं
    • कस्टमर रेफ़रेंस
    • सहायता
    • अपग्रेड
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    डेमो देखें
  • कीमत
  • सहायता

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • सीआरएम
  • e-Commerce
  • लेखांकन
  • इन्वेंटरी
  • PoS
  • प्रोजेक्ट
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
Help

Created module , new moduel

Subscribe

Get notified when there's activity on this post

This question has been flagged
modulenew
5 Replies
6502 Views
Avatar
sanaa tayb

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!!!

0
Avatar
Discard
Avatar
Borni DHIFI
Best Answer

Hi,

your model name is medicalcase but in xml you use <field name="model">medical</field>

so replace _name='medicalcase' to _name='medical'

   class medicalcase(osv.osv):
        _name='medical'

the problem is with the field active.

field active is automatically created by openerp if active=true you can see the record else you can not see the record .

so if create a new patient chek the case active. or delete this field from your model.

2
Avatar
Discard
sanaa tayb
Author

i actually changed it , but the problem remain the same , whenever i add a new patient ( using the form) i'm not able to see it on the list when i'm supposed to see all my patients , Plz help :s

Borni DHIFI

I changed my answer.

sanaa tayb
Author

Thank you Soooo muuch , that was the problem , now it's working fine ;)

Avatar
kadjiomartial
Best Answer

puis-je avoir ce module?


martialkadjio@yahoo.com

0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Syntax error
module new
Avatar
Avatar
1
अप्रैल 16
4667
ProgrammingError: ERREUR: erreur de syntaxe sur ou près de « analyse » LINE 1: COMMENT ON COLUMN analyse."name" IS 'pat'
module new
Avatar
Avatar
1
मार्च 15
9287
new module? Solved
module new practice
Avatar
Avatar
Avatar
Avatar
Avatar
10
मई 20
5194
Problem with inherited module Solved
module _inherits new
Avatar
Avatar
Avatar
Avatar
6
जुल॰ 18
12556
Gather two modules in one ??
installation module new
Avatar
Avatar
Avatar
Avatar
3
अप्रैल 17
10942
कम्यूनिटी
  • ट्यूटोरियल्स
  • दस्तावेज़
  • फ़ोरम
ओपन सोर्स
  • डाउनलोड
  • Github
  • रनबॉट
  • अनुवाद
सेवाएं
  • Odoo.sh Hosting
  • सहायता
  • अपग्रेड
  • कस्टम डेवलपमेंट्स
  • शिक्षा
  • अकाउंटेंट खोजें
  • पार्टनर ढूंढें
  • पार्टनर बनें
हमारे बारे में
  • हमारी कंपनी
  • ब्रांड ऐसेट
  • संपर्क करें
  • नौकरियां
  • इवेंट
  • पॉडकास्ट
  • ब्लॉग
  • ग्राहक
  • लीगल • गोपनीयता
  • सुरक्षा
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo, बिज़नेस से जुड़े ऐप्लिकेशन का एक कलेक्शन है जो ओपन सोर्स पर आधारित है. इसमें आपकी कंपनी की हर ज़रूरत के लिए ऐप्लिकेशन हैं. जैसे, सीआरएम, ई-कॉमर्स, अकाउंटिंग, इन्वेंट्री, पॉइंट ऑफ़ सेल, प्रोजेक्ट मैनेजमेंट वगैरह.

Odoo की सबसे बड़ी खासियत है कि यह इस्तेमाल करने में बहुत आसान है और यह पूरी तरह से इंटिग्रेट किया हुआ है.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now