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
    • Diskusi
    • 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

How can I recover from 500 Internal Server Error after model changes

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
odoov9v9.0
3 Replies
14861 Tampilan
Avatar
Trevor Nemanic

My Odoo version 9 instance now returns a "500 Internal Server Error" after I changed the name of a model and an attribute inside. They both have since been renamed and old tables dropped from the database. I've also cleared all tuples in the current table, and restarted the server, but no success. My code follows the guide on "Building a Website" from Odoo.  The code I originally changed was class Teachers to Customers and attribute fix_tribe.teachers to fix_tribe.customers. My current code is below:

from models.py

class Teachers(models.Model):
_name = 'fix_tribe.teachers'
name = fields.Char()
biography = fields.Html()
course_ids = fields.One2many('fix_tribe.courses', 'teacher_id', string="Courses")

from views.xml

  <record id="action_fix_tribe_customers" model="ir.actions.act_window">
<field name="name">Customers</field>
<field name="res_model">fix_tribe.teachers</field>
</record>

  <record id="fix_tribe_teacher_form" model="ir.ui.view">

<field name="name">FixTribe teachers: form</field>

<field name="model">fix_tribe.teachers</field>

<field name="arch" type="xml">

<form>

<sheet>

<label for="name"/> <field name="name"/>

<label for="biography"/>

<field name="biography"/>

<field name="course_ids">

<tree string="Courses" editable="bottom">

<field name="name"/>

</tree>

</field>

</sheet>

</form>

</field>

</record>

2
Avatar
Buang
Avatar
Trevor Nemanic
Penulis Jawaban Terbai

I went into the log file /server/openerp-server.log and it showed that my __openerp__.py file was attempting to reference a data file that does not exist. Removing this reference solved the error. 

Happy Odoo's answer did in fact cause the server to start, but not solve the problem.

Dr Obx's answer only would work for Linux and I am running Windows

0
Avatar
Buang
Avatar
Jeel Khanpara
Jawaban Terbai

Trevor Nemanic

If your code is in New Module then Remove that Module folder form addons directory and restart the ERP.

it will work. 500 Internal Error will Remove.

if ERP started then you have to check this custom code.


4
Avatar
Buang
Avatar
Dr Obx
Jawaban Terbai

I strongly recommend to run Odoo server from the console if You testing a new code. If there is any problem it will tell you what cause it.
To do it:

1. Open Terminal
2. type 'service odoo stop'
3. as a root type: sudo su - odoo -s /bin/bash
4. run 'openerp-server'
then watch the console against the errors.

You can see there all messages generated by openerp-server also if there is any problem you can copy and paste it in your posts, it can be very helpful  :)

 

1
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
Where I can find alpha version of V9 Diselesaikan
odoo v9
Avatar
Avatar
Avatar
2
Jul 15
4496
Is there any live streaming for ODOO experience this year? [Update: 3 days links available] Diselesaikan
odoo v9
Avatar
Avatar
2
Jun 15
6424
Display on-the-fly data in a tree view?
treeview v9 v9.0
Avatar
Avatar
2
Sep 22
6328
Manufacturing journal entries are against Stock Interim Account Diselesaikan
v9 v9.0 V9
Avatar
Avatar
1
Des 20
10623
Odoo connector to Magento
integration odoo v9
Avatar
0
Des 16
35
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