Skip to Content
Odoo Menu
  • Zaloguj się
  • Wypróbuj za darmo
  • Aplikacje
    Finanse
    • Księgowość
    • Fakturowanie
    • Wydatki
    • Arkusz kalkulacyjny (BI)
    • Dokumenty
    • Podpisy
    Sprzedaż
    • CRM
    • Sprzedaż
    • PoS Sklep
    • PoS Restauracja
    • Subskrypcje
    • Wypożyczalnia
    Strony Internetowe
    • Kreator Stron Internetowych
    • eCommerce
    • Blog
    • Forum
    • Czat na Żywo
    • eLearning
    Łańcuch dostaw
    • Magazyn
    • Produkcja
    • PLM
    • Zakupy
    • Konserwacja
    • Jakość
    Zasoby Ludzkie
    • Pracownicy
    • Rekrutacja
    • Urlopy
    • Ocena pracy
    • Polecenia Pracownicze
    • Flota
    Marketing
    • Marketing Społecznościowy
    • E-mail Marketing
    • SMS Marketing
    • Wydarzenia
    • Automatyzacja Marketingu
    • Ankiety
    Usługi
    • Projekt
    • Ewidencja czasu pracy
    • Usługi Terenowe
    • Helpdesk
    • Planowanie
    • Spotkania
    Produktywność
    • Dyskusje
    • Zatwierdzenia
    • IoT
    • VoIP
    • Baza wiedzy
    • WhatsApp
    Aplikacje trzecich stron Studio Odoo Odoo Cloud Platform
  • Branże
    Sprzedaż detaliczna
    • Księgarnia
    • Sklep odzieżowy
    • Sklep meblowy
    • Sklep spożywczy
    • Sklep z narzędziami
    • Sklep z zabawkami
    Żywienie i hotelarstwo
    • Bar i Pub
    • Restauracja
    • Fast Food
    • Pensjonat
    • Dystrybutor napojów
    • Hotel
    Agencja nieruchomości
    • Agencja nieruchomości
    • Biuro architektoniczne
    • Budowa
    • Zarządzanie nieruchomościami
    • Ogrodnictwo
    • Stowarzyszenie właścicieli nieruchomości
    Doradztwo
    • Biuro księgowe
    • Partner Odoo
    • Agencja marketingowa
    • Kancelaria prawna
    • Agencja rekrutacyjna
    • Audyt i certyfikacja
    Produkcja
    • Tekstylia
    • Metal
    • Meble
    • Jedzenie
    • Browar
    • Prezenty firmowe
    Zdrowie & Fitness
    • Klub sportowy
    • Salon optyczny
    • Centrum fitness
    • Praktycy Wellness
    • Apteka
    • Salon fryzjerski
    Transakcje
    • Złota rączka
    • Wsparcie Sprzętu IT
    • Systemy energii słonecznej
    • Szewc
    • Firma sprzątająca
    • Usługi HVAC
    Inne
    • Organizacja non-profit
    • Agencja Środowiskowa
    • Wynajem billboardów
    • Fotografia
    • Leasing rowerów
    • Sprzedawca oprogramowania
    Przeglądaj wszystkie branże
  • Community
    Ucz się
    • Samouczki
    • Dokumentacja
    • Certyfikacje
    • Szkolenie
    • Blog
    • Podcast
    Pomóż w nauce innym
    • Program Edukacyjny
    • Scale Up! Gra biznesowa
    • Odwiedź Odoo
    Skorzystaj z oprogramowania
    • Pobierz
    • Porównaj edycje
    • Wydania
    Współpracuj
    • Github
    • Forum
    • Wydarzenia
    • Tłumaczenia
    • Zostań partnerem
    • Usługi dla partnerów
    • Zarejestruj swoją firmę rachunkową
    Skorzystaj z usług
    • Znajdź partnera
    • Znajdź księgowego
    • Spotkaj się z doradcą
    • Usługi wdrożenia
    • Opinie klientów
    • Wsparcie
    • Aktualizacje
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Zaplanuj demo
  • Cennik
  • Pomoc

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

  • CRM
  • e-Commerce
  • Księgowość
  • Zapasy
  • PoS
  • Projekt
  • MRP
All apps
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Pomoc

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

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
modelsmodeltutorial
4 Odpowiedzi
7807 Widoki
Awatar
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
Awatar
Odrzuć
Sehrish

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

Awatar
Niyas Raphy (Walnut Software Solutions)
Najlepsza odpowiedź

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
Awatar
Odrzuć
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.

Podoba Ci się ta dyskusja? Dołącz do niej!

Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!

Zarejestruj się
Powiązane posty Odpowiedzi Widoki Czynność
model is not created even though imported in __init__
models tutorial
Awatar
Awatar
1
sie 23
3522
a model based on a hand written sql query Rozwiązane
models sql model
Awatar
Awatar
1
lip 23
3159
Why can't i find some models in db? Rozwiązane
models model odoov12
Awatar
Awatar
1
mar 19
4081
How to add products to quotation template without product name?
models quotation model
Awatar
Awatar
1
mar 15
7938
Odoo new Model class? Rozwiązane
import models model
Awatar
Awatar
1
mar 15
14095
Społeczność
  • Samouczki
  • Dokumentacja
  • Forum
Open Source
  • Pobierz
  • Github
  • Runbot
  • Tłumaczenia
Usługi
  • Hosting Odoo.sh
  • Wsparcie
  • Aktualizacja
  • Indywidualne rozwiązania
  • Edukacja
  • Znajdź księgowego
  • Znajdź partnera
  • Zostań partnerem
O nas
  • Nasza firma
  • Zasoby marki
  • Skontaktuj się z nami
  • Oferty pracy
  • Wydarzenia
  • Podcast
  • Blog
  • Klienci
  • Informacje prawne • Prywatność
  • Bezpieczeństwo Odoo
الْعَرَبيّة 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 to pakiet aplikacji biznesowych typu open source, które zaspokoją wszystkie potrzeby Twojej firmy: CRM, eCommerce, księgowość, inwentaryzacja, punkt sprzedaży, zarządzanie projektami itp.

Unikalną wartością Odoo jest to, że jest jednocześnie bardzo łatwe w użyciu i w pełni zintegrowane.

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