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

IOError: File not found openerp

Odoberať

Get notified when there's activity on this post

This question has been flagged
filenotfoundioerror
2 Replies
10153 Zobrazenia
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
Zrušiť
Avatar
sridhar
Best Answer

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

Hi Sridhar , Thanks for your immediate reply

Avatar
Maniganda
Best Answer

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

0
Avatar
Zrušiť
omprakash
Autor

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!

Registrácia
Related Posts Replies Zobrazenia Aktivita
in user form sales is not found in application,how can we solve it
sales not found is
Avatar
0
mar 15
4464
V6.1 Bazaar Package not Found
bazaar not found allow_none package
Avatar
0
nov 16
6565
Can files be downloaded by visitors to my website (built using web builder) ? Solved
file website
Avatar
Avatar
Avatar
2
okt 24
4646
IN A SUBSCRIPTION OR IN A SUBSCRIPTION SALE PAYPAL DOES NOT APPEAR AS A PAYMENT METHOD
working not
Avatar
0
apr 24
1378
Not visualization files attached in my tasks
tasks file
Avatar
0
sep 23
1790
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