Skip to Content
Odoo Menu
  • Prijavi
  • Try it free
  • Aplikacije
    Finance
    • Knjigovodstvo
    • Obračun
    • Stroški
    • Spreadsheet (BI)
    • Dokumenti
    • Podpisovanje
    Prodaja
    • CRM
    • Prodaja
    • POS Shop
    • POS Restaurant
    • Naročnine
    • Najem
    Spletne strani
    • Website Builder
    • Spletna trgovina
    • Blog
    • Forum
    • Pogovor v živo
    • eUčenje
    Dobavna veriga
    • Zaloga
    • Proizvodnja
    • PLM
    • Nabava
    • Vzdrževanje
    • Kakovost
    Kadri
    • Kadri
    • Kadrovanje
    • Odsotnost
    • Ocenjevanja
    • Priporočila
    • Vozni park
    Marketing
    • Družbeno Trženje
    • Email Marketing
    • SMS Marketing
    • Dogodki
    • Avtomatizacija trženja
    • Ankete
    Storitve
    • Projekt
    • Časovnice
    • Storitve na terenu
    • Služba za pomoč
    • Načrtovanje
    • Termini
    Produktivnost
    • Razprave
    • Odobritve
    • IoT
    • Voip
    • Znanje
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industrije
    Trgovina na drobno
    • Book Store
    • Trgovina z oblačili
    • Trgovina s pohištvom
    • Grocery Store
    • Trgovina s strojno opremo računalnikov
    • Trgovina z igračami
    Food & Hospitality
    • Bar and Pub
    • Restavracija
    • Hitra hrana
    • Guest House
    • Beverage Distributor
    • Hotel
    Nepremičnine
    • Real Estate Agency
    • Arhitekturno podjetje
    • Gradbeništvo
    • Estate Management
    • Vrtnarjenje
    • Združenje lastnikov nepremičnin
    Svetovanje
    • Računovodsko podjetje
    • Odoo Partner
    • Marketinška agencija
    • Law firm
    • Pridobivanje talentov
    • Audit & Certification
    Proizvodnja
    • Tekstil
    • Metal
    • Pohištvo
    • Hrana
    • Brewery
    • Poslovna darila
    Health & Fitness
    • Športni klub
    • Trgovina z očali
    • Fitnes center
    • Wellness Practitioners
    • Lekarna
    • Frizerski salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Sistemi sončne energije
    • Izdelovalec čevljev
    • Čistilne storitve
    • HVAC Services
    Ostali
    • Neprofitna organizacija
    • Agencija za okolje
    • Najem oglasnih panojev
    • Fotografija
    • Najem koles
    • Prodajalec programske opreme
    Browse all Industries
  • Skupnost
    Learn
    • Tutorials
    • Dokumentacija
    • Certifikati
    • Šolanje
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Prenesi
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Dogodki
    • Prevodi
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Sklici kupca
    • Podpora
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Določanje cen
  • Pomoč

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

  • CRM
  • e-Commerce
  • Knjigovodstvo
  • Zaloga
  • PoS
  • Projekt
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
Pomoč

Created module , new moduel

Naroči se

Get notified when there's activity on this post

This question has been flagged
modulenew
5 Odgovori
6513 Prikazi
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
Opusti
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
Opusti
sanaa tayb
Avtor

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
Avtor

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
Opusti
Enjoying the discussion? Don't just read, join in!

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

Prijavi
Related Posts Odgovori Prikazi Aktivnost
Syntax error
module new
Avatar
Avatar
1
apr. 16
4684
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
mar. 15
9297
new module? Solved
module new practice
Avatar
Avatar
Avatar
Avatar
Avatar
10
maj 20
5212
Problem with inherited module Solved
module _inherits new
Avatar
Avatar
Avatar
Avatar
6
jul. 18
12586
Gather two modules in one ??
installation module new
Avatar
Avatar
Avatar
Avatar
3
apr. 17
10964
Community
  • Tutorials
  • Dokumentacija
  • Forum
Open Source
  • Prenesi
  • Github
  • Runbot
  • Prevodi
Services
  • Odoo.sh Hosting
  • Podpora
  • Nadgradnja
  • Custom Developments
  • Izobraževanje
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Sredstva blagovne znamke
  • Kontakt
  • Zaposlitve
  • Dogodki
  • Podcast
  • Blog
  • Stranke
  • Pravno • Zasebnost
  • Varnost
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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