İçereği Atla
Odoo Menü
  • Portal
  • Ücretsiz deneyin
  • Uygulamalar
    Finans
    • Muhasebe
    • Faturalama
    • Masraf Yönetimi
    • Elektronik Çizelge (BI)
    • Belgeler
    • İmza
    Satış
    • Müşteri İlişkileri Yönetimi (CRM)
    • Satış
    • Satış Noktası Mağaza
    • Satış Noktası Restoran
    • Abonelikler
    • Kiralama
    Web Sitesi
    • Web Sitesi Oluşturucu
    • eTicaret
    • Blog
    • Forum
    • Canlı Sohbet
    • eÖğrenme
    Tedarik Zinciri
    • Envanter
    • Üretim
    • Ürün Yaşam Döngüsü Yönetimi
    • Satın Alma
    • Bakım
    • Kalite
    İnsan Kaynakları
    • Çalışanlar
    • İşe Alım
    • İzin
    • Değerlendirme
    • Referans
    • Filo Yönetimi
    Pazarlama
    • Sosyal Medyada Pazarlama
    • E-posta ile Pazarlama
    • SMS ile Pazarlama
    • Etkinlikler
    • Pazarlama Otomasyonu
    • Anket
    Hizmetler
    • Proje Yönetimi
    • Çalışma Çizelgeleri
    • Saha Hizmeti
    • Yardım Masası
    • Planlama
    • Randevular
    Verimlilik
    • Sohbet
    • Onay
    • Nesnelerin İnterneti
    • VoIP
    • Bilgi Bankası
    • WhatsApp
    Üçüncü taraf uygulamalar Odoo Stüdyo Odoo Bulut Platformu
  • Sektörler
    Perakende satış
    • Kitapçı
    • Giyim Mağazası
    • Mobilya Mağazası
    • Gıda Marketi
    • Hırdavat Dükkanı
    • Oyuncak Dükkanı
    Gıda ve Konaklama
    • Bar ve Pub
    • Restoran
    • Fast Food Restoranı
    • Konuk Evi
    • İçecek Distribütörü
    • Otel
    Gayrimenkul
    • Emlak Acentesi
    • Mimarlık Firması
    • İnşaat
    • Emlak Yönetimi
    • Bahçe Tasarımı
    • Mülk Sahipleri Derneği
    Uzmanlık
    • Muhasebe Firması
    • Odoo Partner
    • Pazarlama Ajansı
    • Hukuk Firması
    • Yetenek Kazanımı
    • Denetim ve Belgelendirme
    Üretim
    • Tekstil
    • Metal
    • Mobilyalar
    • Gıda
    • Bira fabrikası
    • Kurumsal Hediye
    Sağlık ve Spor
    • Spor Kulübü
    • Optik Mağazası
    • Fitness Merkezi
    • Sağlıklı Yaşam Merkezi
    • Eczane
    • Kuaför Salonu
    Ticaret
    • Tamirci
    • BT Donanım & Destek
    • Güneş Enerjisi Sistemleri
    • Ayakkabı İmalatçısı
    • Temizlik Hizmetleri
    • HVAC Hizmetleri
    Diğerleri
    • Kar Amacı Gütmeyen Kuruluş
    • Çevre Ajansı
    • Reklam Panosu Kiralama
    • Fotoğrafçılık
    • Bisiklet Kiralama
    • Yazılım Bayisi
    Tüm Sektörlere Göz Atın
  • Topluluk
    Öğrenim
    • Eğitim Araçları
    • Dokümantasyon
    • Sertifikasyonlar
    • Eğitim Etkinlikleri
    • Blog
    • Podcast
    Eğitim ve Gelişim
    • Eğitim Programı
    • Scale Up! İşletme Oyunu
    • Odoo'yu Ziyaret Edin
    Yazılım
    • İndirin
    • Sürümleri Kıyaslayın
    • Sürümler
    İş Birliği
    • Github
    • Forum
    • Etkinlikler
    • Çeviriler
    • Partner Olun
    • Partnerler için Hizmetler
    • Muhasebe Firmanızı Kaydettirin
    Hizmetler
    • Partner Bulun
    • Muhasebeci Bulun
    • Bir danışmanla görüşün
    • Kurulum Hizmetleri
    • Müşteri Referansları
    • Destek
    • Sürüm Yükseltme
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Demo randevusu alın
  • Fiyatlandırma
  • Yardım

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

  • Müşteri İlişkileri Yönetimi
  • e-Commerce
  • Muhasebe
  • Envanter
  • PoS
  • Proje Yönetimi
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
Yardım

IOError: File not found openerp

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
filenotfoundioerror
2 Cevaplar
10158 Görünümler
Avatar
omprakash

Hi Friends ,

I have doubt , what is problem in my custom module . Getting error as IOError : File not found . Please help to solve this problem .

This is my code :

  • __init__.py

    import sample

  • __openerp__.py

    { "name": "sample", "version": "7.0", "depends": ["base"], "author": "Prakash", "category": "Others", "description": """ This module provide : This module provide basic idea about creating custom module

    """, "init_xml": ["sample_view.xml"], 'update_xml': [""], 'demo_xml': [""], 'installable': True, 'active': False, }

  • sample.py

from osv import fields,osv

class sample(osv.osv): def _calculate(self, cr, uid, ids, fields, arg, context): x={} for record in self.browse(cr, uid, ids): x[record.id]= record.field_a + record.field_b return x _name = 'sample' _columns = { 'field_a' : fields.integer('field_a') , 'field_b' : fields.integer('field_b'), 'result' : fields.function(_calculate, type='integer', obj='sample', method=True, store=False, string='result'), } sample()

  • sample_view.xml

<openerp> <data> <record model="ir.ui.view" id="sample_tree_view"> <field name="name">sample.tree</field> <field name="model">sample</field> <field name="type">tree</field> <field name="arch" type="xml"> <tree string="sample"> <field name="field_a"/> <field name="field_b"/> <field name="result"/> </tree> </field> </record>

    <record model="ir.ui.view" id="sample_form_view">
        <field name="name">sample.form</field>
        <field name="model">sample</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
            <form string="sample">
                <field name="field_a"/>
                <field name="field_b"/>
                <field name="result"/>
            </form>
        </field>
    </record>

    <record model="ir.actions.act_window" id="action_sample_form">
        <field name="name">sample</field>
        <field name="res_model">sample</field>
    </record>

    <menuitem name="parent" icon="terp-project" id="parent_id"/>

<menuitem name="child" parent="parent_id" id="child_id" />

    <menuitem name="grandson" parent="child_id" id="grandson_id" action="action_sample_form"/>
</data>

</openerp>

When i try to install my module getting error in openerp-server.log:

2013-05-27 11:04:28,869 2372 INFO group openerp.modules.loading: module sample: loading objects 2013-05-27 11:04:28,903 2372 INFO group openerp.modules.module: module sample: creating or updating database tables 2013-05-27 11:04:29,482 2372 INFO group openerp.modules.loading: module sample: loading sample_view.xml 2013-05-27 11:04:29,651 2372 WARNING group openerp.addons.base.ir.ir_ui_view: Setting the type field is deprecated in the ir.ui.view model. 2013-05-27 11:04:29,736 2372 WARNING group openerp.addons.base.ir.ir_ui_view: Setting the type field is deprecated in the ir.ui.view model. 2013-05-27 11:04:29,923 2372 INFO group openerp.modules.loading: module sample: loading 2013-05-27 11:04:29,924 2372 ERROR group openerp.osv.osv: Uncaught exception Traceback (most recent call last): File "C:\Program Files (x86)\OpenERP 7.0-20130118-002240\Server\server.\openerp\osv\osv.py", line 123, in wrapper File "C:\Program Files (x86)\OpenERP 7.0-20130118-002240\Server\server.\openerp\osv\osv.py", line 179, in execute File "C:\Program Files (x86)\OpenERP 7.0-20130118-002240\Server\server.\openerp\osv\osv.py", line 166, in execute_cr File "C:\Program Files (x86)\OpenERP 7.0-20130118-002240\Server\server\openerp\addons\base\module\module.py", line 425, in button_immediate_install File "C:\Program Files (x86)\OpenERP 7.0-20130118-002240\Server\server\openerp\addons\base\module\module.py", line 476, in _button_immediate_function File "C:\Program Files (x86)\OpenERP 7.0-20130118-002240\Server\server.\openerp\pooler.py", line 39, in restart_pool File "C:\Program Files (x86)\OpenERP 7.0-20130118-002240\Server\server.\openerp\modules\registry.py", line 214, in new File "C:\Program Files (x86)\OpenERP 7.0-20130118-002240\Server\server.\openerp\modules\loading.py", line 347, in load_modules File "C:\Program Files (x86)\OpenERP 7.0-20130118-002240\Server\server.\openerp\modules\loading.py", line 258, in load_marked_modules File "C:\Program Files (x86)\OpenERP 7.0-20130118-002240\Server\server.\openerp\modules\loading.py", line 189, in load_module_graph File "C:\Program Files (x86)\OpenERP 7.0-20130118-002240\Server\server.\openerp\modules\loading.py", line 73, in <lambda> File "C:\Program Files (x86)\OpenERP 7.0-20130118-002240\Server\server.\openerp\modules\loading.py", line 111, in _load_data File "C:\Program Files (x86)\OpenERP 7.0-20130118-002240\Server\server.\openerp\tools\misc.py", line 172, in file_open File "C:\Program Files (x86)\OpenERP 7.0-20130118-002240\Server\server.\openerp\tools\misc.py", line 219, in _fileopen IOError: File not found: sample\

1
Avatar
Vazgeç
Avatar
sridhar
En İyi Yanıt

Try this __openerp__.py code
{ "name": "sample", "version": "7.0", "depends": ["base"], "author": "Prakash", "category": "Others", "description": """ This module provide : This module provide basic idea about creating custom module

""",

'update_xml': ["sample_view.xml"], 
'demo_xml': [""], 
'installable': True, 
'active': False, 
}

https://accounts.openerp.com/forum/Help-1/question/17795#17839 see this link this is helpful for u ...

0
Avatar
Vazgeç
omprakash
Üretici

Hi Sridhar , Thanks for your immediate reply

Avatar
Maniganda
En İyi Yanıt

Hi ,Prakash the problem might be with your xml file syntax can you give the xml here 'update_xml': ["sample_view.xml"]

0
Avatar
Vazgeç
omprakash
Üretici

Hi Maniganda , Thanks for your immediate reply

Enjoying the discussion? Don't just read, join in!

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

Üye Ol
İlgili Gönderiler Cevaplar Görünümler Aktivite
in user form sales is not found in application,how can we solve it
sales not found is
Avatar
0
Mar 15
4470
V6.1 Bazaar Package not Found
bazaar not found allow_none package
Avatar
0
Kas 16
6567
Can files be downloaded by visitors to my website (built using web builder) ? Çözüldü
file website
Avatar
Avatar
Avatar
2
Eki 24
4647
IN A SUBSCRIPTION OR IN A SUBSCRIPTION SALE PAYPAL DOES NOT APPEAR AS A PAYMENT METHOD
working not
Avatar
0
Nis 24
1378
Not visualization files attached in my tasks
tasks file
Avatar
0
Eyl 23
1790
Topluluk
  • Eğitim Araçları
  • Dokümantasyon
  • Forum
Açık Kaynak
  • İndirin
  • Github
  • Runbot
  • Çeviriler
Hizmetler
  • Odoo.sh Hosting
  • Destek
  • Sürüm Yükseltme
  • Özel Geliştirmeler
  • Eğitim
  • Muhasebeci Bulun
  • Partner Bulun
  • Partner Olun
Hakkında
  • Şirketimiz
  • Pazarlama Gereçleri
  • İletişim
  • Kariyer
  • Etkinlikler
  • Podcast
  • Blog
  • Müşteriler
  • Hukuki • Gizlilik
  • Güvenlik
الْعَرَبيّة 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, müşteri ilişkileri yönetimi, eTicaret, muhasebe, envanter, satış noktası, proje yönetimi gibi şirketinizin tüm ihtiyaçlarını karşılayan bir açık kaynak işletme uygulamaları paketidir.

Odoo’nun eşsiz değer önermesi, aynı anda hem kullanımının çok kolay olup hem de tamamen entegre olmasıdır.

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