Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Estate Managament
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

File not found module_name error

Odoberať

Get notified when there's activity on this post

This question has been flagged
error
2 Replies
8483 Zobrazenia
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
Zrušiť
Avatar
Serpent Consulting Services Pvt. Ltd.
Best Answer

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
Zrušiť
bogdan baltatu
Autor

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

bogdan baltatu
Autor

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
Autor

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
Autor Best Answer

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
Zrušiť
Enjoying the discussion? Don't just read, join in!

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

Registrácia
Related Posts Replies Zobrazenia Aktivita
?"Your country might be blocked by our hosting provider" error when I create new website
error
Avatar
0
okt 25
589
Payment Page Return Error with Razorpay on Mobile Devices
error
Avatar
0
sep 25
1202
Error after installing "purchase" app in Odoo version 18
error
Avatar
Avatar
1
dec 24
6760
error schema for TourStep Error
error
Avatar
0
nov 24
2597
Can't modify manifest version of custom module [Odoo.sh]
error
Avatar
Avatar
Avatar
2
júl 24
5251
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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