Skip to Content
Odoo Menu
  • Prisijungti
  • Išbandykite nemokamai
  • Programėlės
    Finansai
    • Apskaita
    • Pateikimas apmokėjimui
    • Sąnaudos
    • Skaičiuoklė (BI)
    • Dokumentai
    • Pasirašymas
    Pardavimai
    • CRM
    • Pardavimai
    • Kasų sistema - Parduotuvė
    • Kasų sistema - Restoranas
    • Prenumeratos
    • Nuoma
    Svetainės
    • Svetainių kūrėjimo įrankis
    • El. Prekyba
    • Internetinis Tinklaraštis
    • Forumas
    • Tiesioginis pokalbis
    • eMokymasis
    Tiekimo grandinė
    • Atsarga
    • Gamyba
    • PLM
    • Įsigijimai
    • Priežiūra
    • Kokybė
    Žmogaus ištekliai
    • Darbuotojai
    • Įdarbinimas
    • Atostogos
    • Įvertinimai
    • Rekomendacijos
    • Transporto priemonės
    Rinkodara
    • Socialinė rinkodara
    • Rinkodara el. paštu
    • SMS rinkodara
    • Renginiai
    • Rinkodaros automatizavimas
    • Apklausos
    Paslaugos
    • Projektas
    • Darbo laiko žiniaraščiai
    • Priežiūros tarnyba
    • Pagalbos tarnyba
    • Planavimas
    • Rezervacijos
    Produktyvumas
    • Diskucija
    • Patvirtinimai
    • IoT
    • VoIP
    • Žinių biblioteka
    • WhatsApp
    Trečiųjų šalių programos Odoo Studija Odoo debesijos platforma
  • Pramonės šakos
    Mažmeninė prekyba
    • Knygynas
    • Drabužių parduotuvė
    • Baldų parduotuvė
    • Maisto prekių parduotuvė
    • Techninės įrangos parduotuvė
    • Žaislų parduotuvė
    Food & Hospitality
    • Barai ir pub'ai
    • Restoranas
    • Greitasis maistas
    • Guest House
    • Gėrimų platintojas
    • Hotel
    Nekilnojamasis turtas
    • Real Estate Agency
    • Architektūros įmonė
    • Konstrukcija
    • Estate Managament
    • Sodininkauti
    • Turto savininkų asociacija
    Konsultavimas
    • Accounting Firm
    • Odoo Partneris
    • Marketing Agency
    • Teisinė firma
    • Talentų paieška
    • Auditai & sertifikavimas
    Gamyba
    • Textile
    • Metal
    • Furnitures
    • Maistas
    • Brewery
    • Įmonių dovanos
    Sveikata & Fitnesas
    • Sporto klubas
    • Akinių parduotuvė
    • Fitneso Centras
    • Sveikatos praktikai
    • Vaistinė
    • Kirpėjas
    Trades
    • Handyman
    • IT įranga ir palaikymas
    • Saulės energijos sistemos
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Kiti
    • Nonprofit Organization
    • Aplinkos agentūra
    • Reklaminių stendų nuoma
    • Fotografavimas
    • Dviračių nuoma
    • Programinės įrangos perpardavėjas
    Browse all Industries
  • Bendrija
    Mokykitės
    • Mokomosios medžiagos
    • Dokumentacija
    • Sertifikatai
    • Mokymai
    • Internetinis Tinklaraštis
    • Tinklalaidės
    Skatinkite švietinimą
    • Švietimo programa
    • Scale Up! Verslo žaidimas
    • Aplankykite Odoo
    Gaukite programinę įrangą
    • Atsisiųsti
    • Palyginkite versijas
    • Leidimai
    Bendradarbiauti
    • Github
    • Forumas
    • Renginiai
    • Vertimai
    • Tapkite partneriu
    • Services for Partners
    • Registruokite jūsų apskaitos įmonę
    Gaukite paslaugas
    • Susiraskite partnerį
    • Susirask buhalterį
    • Susitikti su konsultantu
    • Diegimo paslaugos
    • Klientų rekomendavimas
    • Palaikymas
    • Atnaujinimai
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Gaukite demo
  • Kainodara
  • Pagalba

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

  • CRM
  • e-Commerce
  • Apskaita
  • Atsarga
  • PoS
  • Projektas
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
Pagalba

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

Prenumeruoti

Get notified when there's activity on this post

This question has been flagged
modelsmodeltutorial
4 Replies
7814 Rodiniai
Portretas
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
Portretas
Atmesti
Sehrish

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

Portretas
Niyas Raphy (Walnut Software Solutions)
Best Answer

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
Portretas
Atmesti
DAVID VIGNON
Autorius

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
Autorius

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!

Registracija
Related Posts Replies Rodiniai Veikla
model is not created even though imported in __init__
models tutorial
Portretas
Portretas
1
rugp. 23
3527
a model based on a hand written sql query Solved
models sql model
Portretas
Portretas
1
liep. 23
3165
Why can't i find some models in db? Solved
models model odoov12
Portretas
Portretas
1
kov. 19
4085
How to add products to quotation template without product name?
models quotation model
Portretas
Portretas
1
kov. 15
7945
Odoo new Model class? Solved
import models model
Portretas
Portretas
1
kov. 15
14099
Bendrija
  • Mokomosios medžiagos
  • Dokumentacija
  • Forumas
Atvirasis kodas
  • Atsisiųsti
  • Github
  • Runbot
  • Vertimai
Paslaugos
  • Odoo.sh talpinimas
  • Palaikymas
  • Atnaujinti
  • Pritaikytas programavimo kūrimas
  • Švietimas
  • Susirask buhalterį
  • Susiraskite partnerį
  • Tapkite partneriu
Apie mus
  • Mūsų įmonė
  • Prekės ženklo turtas
  • Susisiekite su mumis
  • Darbo pasiūlymai
  • Renginiai
  • Tinklalaidės
  • Internetinis Tinklaraštis
  • Klientai
  • Teisinis • Privatumas
  • Saugumas
الْعَرَبيّة 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 yra atvirojo kodo verslo programų rinkinys, kuris apima visas įmonės poreikius: CRM, El. Prekybą, Apskaitą, Atsargų, Kasų sistemą, Projektų valdymą ir kt.

Unikali Odoo vertės pasiūla – būti tuo pačiu metu labai lengvai naudojama ir visiškai integruota sistema.

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