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

Reset "ir.actions.act_window.view" records overwritten by Odoo Studio?

Subscriure's

Get notified when there's activity on this post

This question has been flagged
modulesrestoreresetstudiorevert
1 Respondre
4338 Vistes
Avatar
Aaron Beaudoin

Before you answer saying "just set the view to inactive or delete it using developer mode in the UI" please read carefully to understand why that isn't the answer here.

It seems that Odoo Studio sometimes makes changes that are "destructive" in the sense that it overwrites records created by core modules. In my case, one example is the following record from an Odoo Studio export (please excuse the horrible rendering of text pasted from VS Code which I can't control):

<recordid="sale_enterprise.sale_report_action_dashboard_dashboard"model="ir.actions.act_window.view"context="{'studio': True}">    <fieldname="act_window_id"ref="sale_enterprise.sale_report_action_dashboard"/>    <fieldname="multi"eval="False"/>    <fieldname="sequence"eval="False"/>    <fieldname="view_id"ref="sale_enterprise.sale_report_view_dashboard"/>    <fieldname="view_mode">dashboardfield>  record>

The original code for this record can be of course found in the "sale_enterprise" module at "report/sale_report_views.xml":

<recordid="sale_report_action_dashboard_dashboard"model="ir.actions.act_window.view">            <fieldname="sequence"eval="1"/>            <fieldname="view_mode">dashboardfield>            <fieldname="view_id"ref="sale_report_view_dashboard"/>            <fieldname="act_window_id"ref="sale_report_action_dashboard"/>        record>

There is no page in the Odoo UI (even in developer mode) that I am aware of where I can view records of type "ir.actions.act_window.view". So instead, I could use an Odoo Shell and just unlink it. But I'm pretty sure that just deleting the record is not the solution here. I don't want to remove the record—I was to revert it back to "factory" settings. I want to restore it to the state it was in before Odoo Studio modified it.

This need extends to other models modified by Odoo Studio. How do I "undo" the changes to the records made by Odoo Studio and return to the state of the data before Odoo Studio made any changes?

I tried deleting the records in the exported XML files and then importing the export back into Odoo, but that doesn't seem to have had any effect. The records still exist in "ir.model.data" with the "studio" field set to "True". What is the correct way to reset these modifications back to a "vanilla" state?


0
Avatar
Descartar
Avatar
Axel Mendoza
Best Answer

I think that your issue it's because you have missed that the ir.model.data​ records are with noupdate=True​ so they wouldn't be updated at all by any reset view or update of the module. This will happens with or without Odoo Studio, in community or enterprise. 

I may be wrong but it's something that I haven't noticed you mentioned on your very good question description by the way.

So to solve that just find your record and search for the ir.model.data​ entry for that record and set noupdate=False​. You could also do it with a hidden feature in developer mode by click on the bug icon and select View Metadata​

You could notice the No Update line value true or false have a (change)​ text. That's a clickable feature to toggle the noupdate​ field value of the corresponding ir.model.data​ record directly. 

I suggest you to also change the value of studio​ to be False​

After that you could simple go an update the module in order to get the view reset to the original value. This mechanism it's what Odoo itself use

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
Cannot create database from http
restore reset
Avatar
Avatar
Avatar
2
de març 15
11097
Where to find apps created from Studio
modules apps studio odoo10e
Avatar
Avatar
1
de maig 17
5188
How to add or reorder columns in Studio
studio
Avatar
0
de des. 25
31
Studio V18 Domain does not have current field
studio
Avatar
Avatar
1
de des. 25
386
debit and credit in currency
studio
Avatar
Avatar
1
de nov. 25
2341
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