Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Rantai Pasokan
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Discuss
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Estate Management
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Temui penasihat
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan

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

  • CRM
  • e-Commerce
  • Akuntansi
  • Inventaris
  • PoS
  • Project
  • MRP
All apps
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

Internal server error on new db

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
dbodooir.httpodoo17
1 Balas
2691 Tampilan
Avatar
Uzair

when i create new local setup using postgresql, pycharm, odoo17 community and create new db on my local and try to open the db it give me the internal server error on front-end but in the logs it show me  line 58, in web_client

    context = request.env['ir.http'].webclient_rendering_context()

              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

AttributeError: 'ir.http' object has no attribute 'webclient_rendering_context'

0
Avatar
Buang
Avatar
Gracious Joseph
Jawaban Terbai

The error AttributeError: 'ir.http' object has no attribute 'webclient_rendering_context' in Odoo 17 typically occurs when there is a mismatch between the database schema and the Odoo codebase, missing or outdated modules, or issues with the database initialization. Here's how to troubleshoot and resolve this issue:

Steps to Resolve

1. Verify the Odoo Codebase

Ensure that the Odoo codebase is complete and unmodified:

  • Check if the webclient_rendering_context method exists in the ir.http model.
  • It should be defined in the addons/web/models/ir_http.py file in Odoo 17.

Example:

class IrHttp(models.AbstractModel):
    _inherit = "ir.http"

    @classmethod
    def webclient_rendering_context(cls):
        # Method implementation

If the method is missing, the Odoo codebase might be incomplete or corrupted. Re-clone or re-download the Odoo source code from the official repository.

2. Ensure All Required Modules Are Installed

When creating a new database, Odoo must install all core and required modules. If the web module is not properly installed, the webclient_rendering_context method won't be available.

Run the following command to update all modules:

./odoo-bin -d <your_database_name> -u all --stop-after-init

3. Check for Incomplete or Corrupted Database

A partially initialized database can cause this issue. Recreate the database to ensure it’s initialized correctly:

  1. Drop the existing database:
    sudo -u postgres dropdb <your_database_name>
    
  2. Create a new database:
    sudo -u postgres createdb <your_database_name>
    
  3. Restart Odoo and reinitialize the database via the web interface or CLI:
    ./odoo-bin -d <your_database_name> --init=base
    

4. Debugging Missing Method

If the webclient_rendering_context method exists in the code but Odoo still throws an error:

  • Ensure the web module is properly loaded and installed.
  • Check the Odoo logs for errors during module loading or database initialization.

Example log inspection command:

tail -f odoo.log | grep -i "error"

5. Verify Python Environment

Ensure all required Python dependencies are installed for Odoo 17:

  • Install dependencies:
    pip install -r requirements.txt
    
  • If dependencies are missing, the web module might fail to load.

6. Check for Custom Modules

If you have custom modules, one of them might override the ir.http model incorrectly:

  • Temporarily disable custom modules by commenting them out in the addons_path of your odoo.conf.
  • Restart Odoo and test the new database without custom modules:
    ./odoo-bin -c odoo.conf
    

7. Test on a Fresh Setup

To rule out environment-specific issues:

  1. Clone a fresh Odoo 17 Community Edition repository.
  2. Set up a clean PostgreSQL database.
  3. Start Odoo with the clean setup.

Example:

git clone https://github.com/odoo/odoo.git -b 17.0 odoo-17
cd odoo-17
./odoo-bin -d test_db --init=base

Final Notes

If none of the above solutions work:

  • Share the complete error traceback from the logs for more insights.
  • Ensure you’re using the correct branch (17.0) of the Odoo repository.
  • Check for Odoo bug reports on GitHub to see if this issue has been reported for Odoo 17.

By following these steps, you should be able to resolve the AttributeError and successfully access the new database. Let me know if you need further assistance!

0
Avatar
Buang
Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Post Terkait Replies Tampilan Aktivitas
How to create a dynamic domain in Odoo 17? Diselesaikan
odoo odoo17
Avatar
Avatar
Avatar
Avatar
3
Mar 25
4493
How to Change the Error Dialog Box, Odoo Title Name, and Odoo Server Name?
odoo odoo17
Avatar
0
Mar 25
2464
How to create a custom discard button?
odoo odoo17
Avatar
Avatar
Avatar
Avatar
4
Jan 25
3791
'\n' new line option not working in UserError in Odoo 17
odoo odoo17
Avatar
Avatar
1
Nov 24
3663
Error when entering settings
odoo odoo17 Odoo17
Avatar
Avatar
Avatar
2
Apr 25
4439
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Tugas
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة 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 adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik Odoo.

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