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

Changes to .RML files won't show up on reports

Subscriure's

Get notified when there's activity on this post

This question has been flagged
rml
1 Respondre
5352 Vistes
Avatar
JulienB

My colleagues wanted some changes in our reports. So I edited the .RML files with the text editor and restarted the service openerp-server.

And my changes were never applied to the PDF reports.

So I read the documentation specific to version 5.0 on the odoo  web site, I read the Q/A on this forum, and... except from a consensus about the option " Reload from attachment ".. nobody seems to have problems with .RML files modifications not being applied to the resulting .PDF files.

The facts :

  • The RML report contains very specific text that only belongs to one .RML file (so the file to edit is obvious)

  • OpenERP 5.0 / linux Ubuntu 16.04.3 LTS

  • Columns `report_sxw_content_data` and `report_rml_content_data` in database table `public.ir_act_report_xml` are null

  • attachment_use is false  : Reload from attachment is unticked

The things I tried so far :

  • Restart openerp-server after .RML file modification (no changes)

  • Removed or changed report lines from ir_act_report_xml (crashed odoo)

  • Check that Reload from attachment is unticked

  • Set the values `report_sxw_content_data` and `report_rml_content_data`to null (no changes, in fact they were already null)

Does anybody have a clue about the correct method to update a .RML report ?

0
Avatar
Descartar
JulienB
Autor

@ray does it means I should stop the service and run ./openerp-server.py -u custom_module ?

JulienB
Autor

As recommended by @raycarnes I stopped the open-erp server, backed-up the database and ran

./openerp-server.py --update=custom_module -d db_101209 --stop-after-init

Odoo actually tried to update the module and choked on a xml syntax error somewhere else (a previous contractor made the syntax error 3 years ago, and the module has not been updated in the last 3 years, probably). The resulting database was impossible to use..

So now either I fix the prevous guy's mistakes, or I find another way to update the .RML definitions for open-erp. There MUST be another way.. last year I upgraded the operating system and made a few minor fixes in the .RML files layout.. these changes were accepted into openerp without module updates.

Avatar
Ray Carnes
Best Answer

RML files, among others, are loaded into the Odoo database when the database is created.

Odoo then retrieves the RML from the database field(s) - never the file on disk.

You need to update the database to re-load the RML files into the database (or at least upgrade the modules containing those RML files).

This is the same for other files - such as XML. You need to update those modules to re-load the XML into the database.


1
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
[SOLVED] Where is possible to modify rml files Solved
rml
Avatar
Avatar
Avatar
Avatar
4
de des. 23
12763
RML editor error "'ascii' codec can't encode character u'\xb0' in position 11235: ordinal not in range(128)" on OpenERP 7
rml
Avatar
0
d’oct. 16
3483
RML not formatting, printing <b> </b> instead
rml
Avatar
Avatar
4
d’oct. 15
4549
How to rotate image in RML report ?
rml
Avatar
0
de set. 15
5198
How can i use <storyPlace> element in RML on OpenERP7? Solved
rml
Avatar
Avatar
1
d’ag. 15
5202
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