Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Social media Marketing
    • E-mailmarketing
    • SMS Marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

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

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

Odoo 'build a module'...Model not seen in my module

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
modelsmodeltutorial
4 Antwoorden
7824 Weergaven
Avatar
DAVID VIGNON

Hi,

I am a beginnier and i am working on the online tutorial to learn how to build a module:

"Technical training - Backend developement ---- Build an Odoo Module';

but for some reasons i can't see my model 'Course' in my module.... I tried to write again from the beginning all the models.py and the openacademy.xml but it's not working...


I asked to one of my developer friend, but he can't find the problem....

-----

Edit :

More informations:

- I use Odoo 13 and deploy on Odoo.sh

- My module is installed and upgrade

-xml is called  in __manifest__ 'data'

- models is imported in __init__

- The problem seems to come from my xml cause i found my model in settings/technical/models

------


If somebody can help me please, here is my files :


openacademy.xml


<?xml version="1.0" encoding="utf-8"?>


<odoo>


    <record model="ir.ui.view" id="course_form_view">

        <field name="name">course.form</field>

        <field name="model">openacademy.course</field>

        <field name="arch" type="xml">

            <form string="Course Form">

                <sheet>

                    <group>

                        <field name="name"/>

                        <field name="responsible_id"/>

                    </group>

                    <notebook>

                        <page string="Description">

                            <field name="description"/>

                        </page>

                        <page string="Sessions">

                            <field name="session_ids">

                                <tree string="Registered sessions">

                                    <field name="name"/>

                                    <field name="instructor_id"/>

                                </tree>

                            </field>

                        </page>

                        <page string="About">

                        </page>

                    </notebook>

                </sheet>

            </form>

        </field>

    </record>

    

    <record model="ir.ui.view" id="course_tree_view">

        <field name="name">course.tree</field>

        <field name="model">openacademy.course</field>

        <field name="arch" type="xml">

            <tree string="Course Tree">

                <field name="name"/>

                <field name="responsible_id"/>

            </tree>

        </field>

    </record>

    

    <record model="ir.ui.view" id="course_search_view">

        <field name="name">course.search</field>

        <field name="model">openacademy.course</field>

        <field name="arch" type="xml">

            <search>

                <field name="name"/>

                <field name="description"/>

            </search>

        </field>

    </record>

    

    <record model="ir.actions.act_window" id="course_list_action">

        <field name="name">Courses</field>

        <field name="res_model">openacademy.course</field>

        <field name="view_mode">tree,form</field>

        <field name="help" type="html">

            <p class="nocontent">Create the first course

            </p>

        </field>

    </record>

    

    <menuitem id="main_openacademy_menu" name="Open academy"/>

    <menuitem id="openacademy_menu" name="Open Academy"

             parent="main_openacademy_menu"/>

    <menuitem id="courses_menu" name="Courses" parent="openacademy_menu"

              action="openacademy.course_list_action"/>

    

    <record model="ir.ui.view" id="session_form_view">

        <field name="name">session.form</field>

        <field name="model">openacademy.session</field>

        <field name="arch" type="xml">

            <form string="Session Form">

                <sheet>

                    <group>

                        <group string="General">

                            <field name="course_id"/>

                            <field name="name"/>

                            <field name="instructor_id"/>

                            <field name="active"/>

                        </group>

                        <group string="Schedule">

                            <field name="start_date"/>

                            <field name="duration"/>

                            <field name="seats"/>

                            <field name="taken_seats" widget="progressbar"/>

                        </group>

                        <label for="attendee_ids"/>

                        <field name="attendee_ids"/>

                    </group>

                </sheet>

            </form>

        </field>

    </record>

    

    <record model="ir.ui.view" id="session_tree_view">

        <field name="name">session.tree</field>

        <field name="model">openacademy.session</field>

        <field name="arch" type="xml">

            <tree string="Session Tree" decoration-info="duration&lt;5" decoration-danger="duration&gt;15">

                <field name="name"/>

                <field name="course_id"/>

                <field name="duration" invisible="1"/>

                <field name="taken_seats" widget="progressbar"/>

            </tree>

        </field>

    </record>

    

    <record model="ir.actions.act_window" id="session_list_action">

        <field name="name">Sessions</field>

        <field name="res_model">openacademy.session</field>

        <field name="view_mode">tree,form</field>

    </record>

    

    <menuitem id="session_menu" name="Sessions"

              parent="openacademy_menu"

              action="session_list_action"/>

</odoo>

0
Avatar
Annuleer
Sehrish

Hope these tips will help you: https://sites.google.com/view/thinkincode/erp/odoo13

Avatar
Niyas Raphy (Walnut Software Solutions)
Beste antwoord

Hi,

If you are saying that the module is not listed under the apps menu, make sure the following scenarios

  1. manifest file is added for the module,

  2. module is placed inside the addons path

  3. service is restarted and updated the apps list before searching the module

  4. Apps filter is removed when searching the apps

If you confirm the above things the newly added module will be listed under the apps menu.


If you are new to odoo development, check out this tutorials:

  1. Odoo 12 Development Tutorials

  2. Odoo 13 Development Tutorials

  3. Odoo 14 Development Tutorials


Thanks

0
Avatar
Annuleer
DAVID VIGNON
Auteur

thanks for your answer.

To be more specific, i am working on the Odoo 13 online tutorial, i built my module, he is listed, installed and upgraded.

In the tutorial, i had to create the first class called 'Course', and this one doesn't appear in my module... Further in the tutorial i had to create a new model in a .py and a new view for this one in a .xml and this one appear in my module...

That's why i'm lost... It worked for the last model, but no the first called 'Course'....

Niyas Raphy (Walnut Software Solutions)

sure that the file containing the first class is imported in the init file ?

Niyas Raphy (Walnut Software Solutions)

also switch to super user mode and confirm, might be access rights issue

DAVID VIGNON
Auteur

Yes cool ! The problem was a rights access...Thank you so much. I'm sorry but it seems that i need to have more karma to convert your answer as response.

Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
model is not created even though imported in __init__
models tutorial
Avatar
Avatar
1
aug. 23
3533
a model based on a hand written sql query Opgelost
models sql model
Avatar
Avatar
1
jul. 23
3170
Why can't i find some models in db? Opgelost
models model odoov12
Avatar
Avatar
1
mrt. 19
4088
How to add products to quotation template without product name?
models quotation model
Avatar
Avatar
1
mrt. 15
7952
Odoo new Model class? Opgelost
import models model
Avatar
Avatar
1
mrt. 15
14113
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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