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

File not found module_name error

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
error
2 Replies
8486 Tampilan
Avatar
bogdan baltatu

hello I have a strange error and I do not know what's causing this error. My code is:

___init__.py

import project_extended

__openerp___.py

{
'name': 'project_extended',
'version': '1.0',
'category': 'Generic Modules/Others',
'description': " Project object extend"
    'author': 'bogdan @ nvncompany.ro',
'depends': ['base',"project","project_issue",],
'data': [
    '',
],
'installable': True,
'auto_install': False,
}

prokect_extended.py

from openerp.osv import fields, osv

class extended_project_issue_version(osv.osv):
_name = "project.issue.version"
_inherit = "project.issue.version"
_columns = {
    'company_id': fields.many2one('res.company', 'Company'),
}
_defaults = {
    'company_id': lambda self, cr, uid, ctx=None: self.pool.get('res.company')._company_default_get(cr, uid, 'project.task', context=ctx),
}   
extended_project_issue_version()    

class extended_project_phase(osv.osv):
_name = "project.phase"
_inherit = "project.phase"
_columns = {
    'company_id': fields.many2one('res.company', 'Company'),
}
_defaults = {
    'company_id': lambda self, cr, uid, ctx=None: self.pool.get('res.company')._company_default_get(cr, uid, 'project.task', context=ctx),
}
extend_project_phase()

class extend_project_category(osv.osv):
_name = "project.category"
_inherit = "project.category"
_columns = {
    'company_id': fields.many2one('res.company', 'Company'),
}
_defaults = {
    'company_id': lambda self, cr, uid, ctx=None: self.pool.get('res.company')._company_default_get(cr, uid, 'project.task', context=ctx),
}
extend_project_category()
0
Avatar
Buang
Avatar
Serpent Consulting Services Pvt. Ltd.
Jawaban Terbai

Hello,

It seems like error of importing .py file.

Make sure the .py file imported in the __init__.py is existing in the model.

Thanks and Regards,

Serpent Consulting Services

0
Avatar
Buang
bogdan baltatu
Penulis

Thank you. I slove the problem. My module name was "project_extended7" and in _init__.py was import "project_extend".

bogdan baltatu
Penulis

I import corect module but I have a new error :RuntimeError: maximum recursion depth exceeded in cmp openerp

IBS Group

In __init__.py you need to import the python file project_extended.py that is inside the module, not the module itself, that's why you are getting a recursion error.

bogdan baltatu
Penulis

Can you tell me how can i import onli the file project_extended.py?

IBS Group

put import project_extended in __init__.pyand restart your server.

Avatar
bogdan baltatu
Penulis Jawaban Terbai

In first post I put __init__.py file and my file have "import project_extended" but does not work. I restart server everty time when I install a new module but i think OpenERP cache some information. Now I rename module folder on new installation but i think it's not a good ideea.

In this moment I restart the server I have "project_extended" folder on OpenERP Addons directory, in __init__.py I have "import project_extended" and all code from my first post and error is "IOError: File not found: project_extended\" I look in "Apply scheduled upgrades from "Modules" and it's only "project_extended" module (not project_extend7 or others".

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
?"Your country might be blocked by our hosting provider" error when I create new website
error
Avatar
0
Nov 25
592
Payment Page Return Error with Razorpay on Mobile Devices
error
Avatar
0
Sep 25
1204
Error after installing "purchase" app in Odoo version 18
error
Avatar
Avatar
1
Des 24
6773
error schema for TourStep Error
error
Avatar
0
Nov 24
2601
Can't modify manifest version of custom module [Odoo.sh]
error
Avatar
Avatar
Avatar
2
Jul 24
5262
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