Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

ParseError: "External ID not found in the system:

Subscriure's

Get notified when there's activity on this post

This question has been flagged
external_idodoo8
7 Respostes
81259 Vistes
Avatar
Henry Lamorski

Hey,

i follow a odoo Moduldevelopment Tutorial, but on installation i go this error:

ParseError: "External ID not found in the system: daily_transaction.action_daily_transaction" while parsing /opt/odoo/custom/addons/daily_transaction/daily_transaction_view.xml:9, near <menuitem action="action_daily_transaction" id="menu_action_daily_transaction" parent="menu_daily_transaction_root" sequence="20"/>

 

why is that so?

Here is my daily_transaction_view.xml:

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!-- Main Menu Related Info -->
<menuitem name="Daily Transaction" id="base.daily_transaction_root" sequence="60"/>
<!-- Sub Menu Related Info -->
<menuitem id="menu_daily_transaction_root" name="Daily Transaction" parent="base.daily_transaction_root" sequence="1" />
<!-- Action Menu Related info -->
<menuitem action="action_daily_transaction" id="menu_action_daily_transaction" parent="menu_daily_transaction_root" sequence="20"/>

<!-- Daily Transaction List View -->
<record id="view_daily_transaction_tree" model="ir.ui.view"> <!-- id is the external id for this tree view which must be unique and will be used for accessing this record -->
    <field name="name">daily.transaction.tree</field>
    <field name="model">daily.transaction</field>
    <field name="arch" type="xml">
        <!-- this will be our title of list/tree view -->
        <tree string="Daily Transaction">
            <!-- automatisches Mapping durch odoo -->
            <field name="name"/>
            <field name="date"/>
            <field name="type"/>
            <field name="amount"/>
        </tree>
    </field>
</record>

<!-- Daily Transaction Form View -->
<record id="view_daily_transaction_form" model="ir.ui.view">
    <field name="name">daily.transaction.form.view</field>
    <field name="model">daily.transaction</field>
    <field name="arch" type="xml">
        <!-- this will be our title of list/tree view -->
        <form string="Daily Transaction" version="7.0">
            <group>
                <field name="name"/>
                <field name="date" />
                <field name="type" />
                <field name="amount" />
                <field name="note" />
            </group>
        </form>
    </field>
</record>

<record id="action_daily_transaction" model="ir.actions.act_window">
    <field name="name">Daily Transaction</field> <!-- name of action -->
    <field name="res_model">daily.transaction</field> <!-- this action will be mapped to model-->
    <field name="view_type">form</field>
    <field name="view_mode">tree.form</field> <!-- these are type of view our module will show for our daily transaction mode -->
    <field name="search_view_id" eval="False"/> <!-- here we specily id of our search view -->
    <field name="context">{}</field>
    <field name="help">Create New daily transaction.</field> <!-- help text for our model -->
</record>
</data>
</openerp>

 

1
Avatar
Descartar
Avatar
Tien Nguyen
Best Answer

Dear 

Please try move 

<record id="action_daily_transaction" model="ir.actions.act_window"> ...
Go up
<menuitem action="action_daily_transaction" id="menu_action_daily_transaction" parent="menu_daily_transaction_root" sequence="20"/> ...
Because the content in *.xml run sequentially,
I think it will work.
1
Avatar
Descartar
Avatar
Lucio
Best Answer

Hi,

just change the order of the definitions. 
Put the menuitems at the bottom of the file (before  </data></openerp> though) and that will do it.

OpenERP or Odoo for that matter, parse the xml files in a bottom-down fashion and at the moment that you are declaring the menuitem with id=menu_action_daily_transaction the action does not exists, it is defined later on the same file.

Hope I made myself clear!

6
Avatar
Descartar
Mubaris ct

this answer worked for me . thank you

Avatar
Scott Weber
Best Answer

I had a similar issue when adding buttons to a header on a form view. Try declaring the report like this:   class="btn-info" name="%(report_id)d" type="action" string="Download Report".  If the report is in another module you need to declare the model also like this:  name="%(module_name.report_id)d"

0
Avatar
Descartar
Avatar
Adesh Paul
Best Answer

I was also getting this error.
I was creating another menu in my module, so I copy-paste the entire code.
But I forget to update the record id. After changing it, my code was executed.

0
Avatar
Descartar
Avatar
Toni Mas
Best Answer

The same error could appear if you call a undefined view in a view_id field.

0
Avatar
Descartar
Avatar
Ehtesham
Best Answer

Yes the order does matter, I had a similar issue I had to move definitions before/above before referring to them.

0
Avatar
Descartar
Avatar
Tushar Donga
Best Answer

face same error in while creating a group for security i give id to my main menu like  groups="module_name.group_id"

but it still show the external id not found

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

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

Registrar-se
Related Posts Respostes Vistes Activitat
Selecting items for one2many relation Solved
odoo8
Avatar
Avatar
Avatar
2
de des. 22
15655
How to upload files automatically on attachments on button click ?
odoo8
Avatar
Avatar
1
de nov. 21
5729
Field company_registry missing in partner table
odoo8
Avatar
0
de gen. 21
2965
How i can find Product PopUp external ID?
external_id
Avatar
Avatar
Avatar
3
de jul. 20
4544
How I disable Import Button for certain model in odoo8? Solved
odoo8
Avatar
Avatar
Avatar
Avatar
Avatar
8
de maig 20
8691
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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