Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

"Ghost" cache - Stubborn problem in Odoo Custom development

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
odoo19
545 Vizualizări
Imagine profil
Hein Htet Aung

I'm trying to change the default pop-up's UI of Odoo POS, as a part of developing custom module for a mobile shop using Odoo 19. The Point of Sale's OWL (Odoo Web Library) template has been overridden to make the pop-up clearer for a mobile shop.


The code and the file placement are correct. All possible causes have also been tried to solve. 

  1. Watchdog' module installed
  2. Went to the Point of Sale and did a Hard Reload (Cmd + Shift + R) to clear the browser's old files.
  3. Forced-Clear the Browser's Local Database (Clicked the "Application->Storage -> Clear site data" button from the Developer Tools)
  4. Disabled the server cache (--dev=all)
  5. Clicked "Regenerate Asset Bundles" for solving "stuck" frontend caches.
  6. Deleted the Manifest's Cache (the compiled Python files (__pycache__)
  7. Cleared Entire Browser Cache (both "Cookies and Site Data" and "Cached Web Content" are checked, and clicked Clear)
  8. Used the Developer Tools to clear cache (Storage tab->Indexed DB, right-click on localhost entry, and "Delete Database"). With the dev tools still open, did a Hard Reload.
  9. Restarted with All Flags (.../odoo.conf --dev=all -u mobile_shop)

Seems like the Odoo cache is still holding on to the old files, despite our best efforts. Thank you in advance for your suggestions. 


Here is our mobile_shop/__manifest__.py

    # Module dependencies

    'depends': [

        'base',

        'sale_management',

        'purchase',

        'stock',

        'point_of_sale',

        'mail',  # For chatter on repairs, etc.

    ],


  


    # Data files (we'll add views here)

    'data': [

         'security/ir.model.access.csv',

         'views/imei_history_views.xml',

         'views/stock_lot_views.xml',

         'views/product_template_views.xml',

    ],


    # Odoo will now be able to read this key

    'assets': {

        'point_of_sale.assets': [

            'mobile_shop/static/src/xml/pos_lot_popup.xml',

            'mobile_shop/static/src/css/pos.css',

        ],

    },


    'installable': True,

    'application': True,

    'auto_install': False,

}


File: mobile_shop/static/src/xml/pos_lot_popup.xml

<?xml version="1.0" encoding="UTF-8"?>

<templates id="template" xml:space="preserve">


    <t t-name="point_of_sale.EditListPopup" t-inherit="point_of_sale.EditListPopup" t-inherit-mode="extension" owl="1">

       

        <xpath expr="//h1[has-class('popup-title')]" position="replace">

            <h1 class="popup-title">

                <t t-if="props.title == 'Lot/Serial number(s) required'">

                    Enter IMEI Number(s) for <t t-esc="props.product.display_name"/>

                </t>

                <t t-else="">

                    <t t-esc="props.title"/>

                </t>

            </h1>

        </xpath>


        <xpath expr="//div[has-class('popup-body')]" position="inside">

            <p class="popup-help-text">

                Scan or type each IMEI. Press Enter after each one.

            </p>

        </xpath>


    </t>


</templates>

 

0
Imagine profil
Abandonează
Enjoying the discussion? Don't just read, join in!

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

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
Upgrade to Odoo 19 Rezolvat
upgrade odoo19
Imagine profil
Imagine profil
1
oct. 25
3635
LLM Model from Default Agent odoo 19
odoo19 ia
Imagine profil
Imagine profil
Imagine profil
2
oct. 25
594
Why can't I use Google Gemini to create AI fields in Odoo 19?
AI odoo19
Imagine profil
0
oct. 25
1143
odoo 16 saas
odoo18 odoo19
Imagine profil
0
iul. 23
4
Odoo Default Map View
javascript map odoo19
Imagine profil
0
nov. 25
83
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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