Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Validations
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Épicerie
    • Quincaillerie
    • Magasin de jouets
    Food & Hospitality
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Guest House
    • Distributeur de boissons
    • Hotel
    Real Estate
    • Real Estate Agency
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consulting
    • Accounting Firm
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Trades
    • Bricoleur
    • Matériel informatique et support
    • Solar Energy Systems
    • Cordonnier
    • Services de nettoyage
    • HVAC Services
    Others
    • Nonprofit Organization
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Browse all Industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenez partenaire
    • Services for Partners
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide

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

  • CRM
  • e-Commerce
  • Comptabilité
  • Inventaire
  • PoS
  • Projet
  • MRP
All apps
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

Cached views on Staging and Main after deleting model fields

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
viewsOdoo.shv18
1 Répondre
1342 Vues
Avatar
Beulah Mathenge

I am doing custom development on Odoo Enterprise V18, with hosting on Odoo.sh. 

Recently, when I make edits to a model, specifically by deleting existing fields, the ir.views doesn't seen to take a note of this. Builds fail with the error that the deleted field does not exists in the model, which is correct. 

Flow: 

  • There are requests to change the flow of features (removing fields or a full overhaul)
  • I delete the fields from the models
  • I delete the views as well from the xml files
  • Build the feature, test on local and deploy to Odoo.sh
  • The DB update is successful in develop and the consequent branch, but fails in staging and main. 

I have tried to manually update the DB using the update command with the flag --dev=all but this doesn't work since the next time I build, the current successful staging branch will still be the reference for the next build and not the dummy DB that's created on failed builds.


0
Avatar
Ignorer
Avatar
Christoph Farnleitner
Meilleure réponse

This is normal behavior.

You could adapt your workflow in development to

  1. delete the fields from view
  2. push and upgrade the module
  3. delete the fields from model
  4. push and upgrade the module

However, when using version numbering correctly in your module, even committing all changes at once should work just fine.
In this scenario this would also make sense, since 1) would be a minor release (if committed individually), still backwards compatible from the model's perspective (i.e 18.0.x.0.1), and 3) would then be a db table modification with, usually, greater impact (i.e 18.0.x.1.0).


See also the output on odoo.sh Shell for odoo-update:

cfarnleitner-xyz [staging/18.0]:~$ odoo-update -h
Update Odoo module

This script proceed to a manual update of one or more Odoo modules in the database.

NOTE: this command is handy to quickly test updates during some development iterations,
      however keep in mind that on Odoo.sh the convention is to increase a module's
      version number in it's manifest file whenever the committed changes requires
      a database upgrade. Please refer to the documentation for more details:
      https://www.odoo.sh/doc/getting_started/branches.html#production



Usage:
  odoo-update [--help] <module>

Options:
  -h, --help           Show this screen and exit.
  <module>             Module list to update separated by comma.
                       Use 'all' as module name to update all modules at once.


In addition, in odoo.sh you may navigate to the Builds menu. Here you should be able to access recent, failed instances as well:

1
Avatar
Ignorer
Beulah Mathenge
Auteur

Thank you @Christoph.
I had tried versioning but that did not work. I'll see if deleting the views from the current branch will work, since I do know their IDs.

Christoph Farnleitner

Before and After source could be helpful in that case

Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
Hide Records based on user group only in a particular view
views record_rule v18 CommunityEdition
Avatar
Avatar
Avatar
2
sept. 25
1421
Creating New Views causing an Error
views v18 V18.1 v18.2
Avatar
0
avr. 25
18
How to Add a User to Access the Database on Odoo.sh?
Odoo.sh
Avatar
Avatar
1
oct. 25
3853
Is it possible to sell on credit directly at the point of sale and leave the order pending payment?
v18
Avatar
Avatar
2
sept. 25
657
How to segrigate a product into multiple products & at the same time i have to manufacture that product also with separate BOM? Résolu
v18
Avatar
Avatar
1
juin 25
1815
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenez partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة 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 est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

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