Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

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

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
modelsmodeltutorial
4 Răspunsuri
7815 Vizualizări
Imagine profil
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
Imagine profil
Abandonează
Sehrish

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

Imagine profil
Niyas Raphy (Walnut Software Solutions)
Cel mai bun răspuns

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
Imagine profil
Abandonează
DAVID VIGNON
Autor

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
Autor

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.

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

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

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
model is not created even though imported in __init__
models tutorial
Imagine profil
Imagine profil
1
aug. 23
3528
a model based on a hand written sql query Rezolvat
models sql model
Imagine profil
Imagine profil
1
iul. 23
3166
Why can't i find some models in db? Rezolvat
models model odoov12
Imagine profil
Imagine profil
1
mar. 19
4085
How to add products to quotation template without product name?
models quotation model
Imagine profil
Imagine profil
1
mar. 15
7947
Odoo new Model class? Rezolvat
import models model
Imagine profil
Imagine profil
1
mar. 15
14100
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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