Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Jídlo a pohostinství
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Penzion
    • Distributor nápojů
    • Hotel
    Nemovitost
    • Realitní kancelář
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Poradenství
    • Účetní firma
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textil
    • Kov
    • Nábytek
    • Jídlo
    • Pivovar
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Transakce
    • Údržbář
    • Podpora IT & hardware
    • Systémy solární energie
    • Výrobce obuvi
    • Úklidové služby
    • Služby HVAC
    Ostatní
    • Nezisková organizace
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Procházet všechna odvětví
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Služby pro partnery
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

Created module , new moduel

Odebírat

Get notified when there's activity on this post

This question has been flagged
modulenew
5 Odpovědi
6492 Zobrazení
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
Zrušit
Avatar
Borni DHIFI
Nejlepší odpověď

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
Zrušit
sanaa tayb
Autor

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
Autor

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

Avatar
kadjiomartial
Nejlepší odpověď

puis-je avoir ce module?


martialkadjio@yahoo.com

0
Avatar
Zrušit
Enjoying the discussion? Don't just read, join in!

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

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
Syntax error
module new
Avatar
Avatar
1
dub 16
4658
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
bře 15
9279
new module? Vyřešeno
module new practice
Avatar
Avatar
Avatar
Avatar
Avatar
10
kvě 20
5182
Problem with inherited module Vyřešeno
module _inherits new
Avatar
Avatar
Avatar
Avatar
6
čvc 18
12537
Gather two modules in one ??
installation module new
Avatar
Avatar
Avatar
Avatar
3
dub 17
10934
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة 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 je balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

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