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

How to import .xml data modules into odoo online. (in Apps View)

Subscriure's

Get notified when there's activity on this post

This question has been flagged
modulesimportxmlappsupload
2 Respostes
4084 Vistes
Avatar
Lutz

In Apps View, there is a point "Import Modules". If you click it you get this dialog:


The yellow note says: "you can only import data modules (.xml files and static assets)".


How can I do this?


I have made this failed test:

I have changed a setting (+86 into +81) in the german tax report (which is XML based) on the GUI.

Then I have downloaded the XML file which should be the base for this report:

https://github.com/odoo/odoo/blob/tmp.saas-18.1/addons/l10n_de/data/account_account_tags_data.xml

I saved it as "account_account_tags_data.xml" and ziped it.

I have uploaded the ZIP using this dialog. There was no error message. 

But after reloading the tax report, the changed word is still changed. 

So the upload of the original XML file have not resulted in overwriting my test change.


What is the correct way to do this?

0
Avatar
Descartar
Avatar
Econ Odoo
Best Answer

To make changes or upload modules in the Odoo Online version, follow these steps:

  1. Create Your Own Module: You need to create a custom module according to Odoo specifications. You can use the odoo-bin scaffold command, or ask any language model (such as ChatGPT, Bing, Gemini, or DeepSeek) for guidance on creating modules.
  2. Module Structure: Your custom module should minimally include:
    • A __manifest__.py file: This file defines your module's metadata, dependencies, and references to your modified XML files.
    • A /views/ folder: This folder contains your XML files.
  3. Modifying XML Files: Editing XML files in Odoo is not as simple as direct modification. You need to use XPath to locate the correct elements and make your changes.

0
Avatar
Descartar
Lutz
Autor

Thx. My problem before was, i have not tried it whith with __manifest__.py, because it is a python file. I used the data folder, not the views folder, because in the original module, it was also in this folder.

Avatar
Lutz
Autor Best Answer

it says "only import ... xml and static assets".

Now i have found a way with ignoring this!


Even if "__manifest__.py" is a python file, this manifest file is needed also for data only models !

So i created a folder called like the original model: "l10n_de" (other names resulted in errors)

In this i have putten "__manifest__.py"

And i created an folder "data", in which i have putten my "account_account_tags_data.xml" file.

I zipped the folder "l10n_de" and uploaded it.


Contend of my "__manifest__.py":

{

'name': 'Germany - Accounting - My Tax Report',

'countries': ['de'],

'author': '',

'version': '2.1',

'category': 'Accounting/Localizations/Account Charts',

'description': "Update of VAT Tax-Report for reduced taxes in 2020",

'depends': [

  'base_iban',

  'base_vat',

  'l10n_din5008',

  'account',

],

'auto_install': ['account'],

'data': [

  'data/account_account_tags_data.xml'

],

'post_init_hook': '_post_init_hook',

'license': 'LGPL-3',

}


After importing this ZIP file, it works! My changed settings are gone, because the settings from the uploded package come into effect!

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
Can't install Sendcloud module Solved
modules import apps odoo16features
Avatar
Avatar
Avatar
2
de març 23
3711
Error importing module
modules import
Avatar
0
de set. 24
1900
How to update config setting from XML in Odoo
modules xml
Avatar
0
d’abr. 17
6030
what is wrong with this code? error is on name="arch" type="xml"
modules xml
Avatar
Avatar
Avatar
Avatar
3
de maig 16
8899
Not showing all modules
modules apps
Avatar
Avatar
Avatar
2
de març 15
6397
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