Skip to Content
Odoo Menu
  • Prijavi
  • Try it free
  • Aplikacije
    Finance
    • Knjigovodstvo
    • Obračun
    • Stroški
    • Spreadsheet (BI)
    • Dokumenti
    • Podpisovanje
    Prodaja
    • CRM
    • Prodaja
    • POS Shop
    • POS Restaurant
    • Naročnine
    • Najem
    Spletne strani
    • Website Builder
    • Spletna trgovina
    • Blog
    • Forum
    • Pogovor v živo
    • eUčenje
    Dobavna veriga
    • Zaloga
    • Proizvodnja
    • PLM
    • Nabava
    • Vzdrževanje
    • Kakovost
    Kadri
    • Kadri
    • Kadrovanje
    • Odsotnost
    • Ocenjevanja
    • Priporočila
    • Vozni park
    Marketing
    • Družbeno Trženje
    • Email Marketing
    • SMS Marketing
    • Dogodki
    • Avtomatizacija trženja
    • Ankete
    Storitve
    • Projekt
    • Časovnice
    • Storitve na terenu
    • Služba za pomoč
    • Načrtovanje
    • Termini
    Produktivnost
    • Razprave
    • Odobritve
    • IoT
    • Voip
    • Znanje
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industrije
    Trgovina na drobno
    • Book Store
    • Trgovina z oblačili
    • Trgovina s pohištvom
    • Grocery Store
    • Trgovina s strojno opremo računalnikov
    • Trgovina z igračami
    Food & Hospitality
    • Bar and Pub
    • Restavracija
    • Hitra hrana
    • Guest House
    • Beverage Distributor
    • Hotel
    Nepremičnine
    • Real Estate Agency
    • Arhitekturno podjetje
    • Gradbeništvo
    • Estate Management
    • Vrtnarjenje
    • Združenje lastnikov nepremičnin
    Svetovanje
    • Računovodsko podjetje
    • Odoo Partner
    • Marketinška agencija
    • Law firm
    • Pridobivanje talentov
    • Audit & Certification
    Proizvodnja
    • Tekstil
    • Metal
    • Pohištvo
    • Hrana
    • Brewery
    • Poslovna darila
    Health & Fitness
    • Športni klub
    • Trgovina z očali
    • Fitnes center
    • Wellness Practitioners
    • Lekarna
    • Frizerski salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Sistemi sončne energije
    • Izdelovalec čevljev
    • Čistilne storitve
    • HVAC Services
    Ostali
    • Neprofitna organizacija
    • Agencija za okolje
    • Najem oglasnih panojev
    • Fotografija
    • Najem koles
    • Prodajalec programske opreme
    Browse all Industries
  • Skupnost
    Learn
    • Tutorials
    • Dokumentacija
    • Certifikati
    • Šolanje
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Prenesi
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Dogodki
    • Prevodi
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Sklici kupca
    • Podpora
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Določanje cen
  • Pomoč

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

  • CRM
  • e-Commerce
  • Knjigovodstvo
  • Zaloga
  • PoS
  • Projekt
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
Pomoč

IOError: File not found

Naroči se

Get notified when there's activity on this post

This question has been flagged
error
27 Odgovori
24329 Prikazi
Avatar
Atchuthan

I am getting this error: IOError: File not found

**Client Traceback**
2013-05-22 06:18:10,025 12660 ERROR sem openerp.osv.osv: Uncaught exception
Traceback (most recent call last):
  File "/var/app/openerp/server/openerp/osv/osv.py", line 131, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/var/app/openerp/server/openerp/osv/osv.py", line 197, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/var/app/openerp/server/openerp/osv/osv.py", line 185, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/var/app/openerp/server/openerp/addons/base/module/module.py", line 424, in button_immediate_install
    return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
  File "/var/app/openerp/server/openerp/addons/base/module/module.py", line 475, in _button_immediate_function
    _, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "/var/app/openerp/server/openerp/pooler.py", line 39, in restart_pool
    registry = RegistryManager.new(db_name, force_demo, status, update_module)
  File "/var/app/openerp/server/openerp/modules/registry.py", line 218, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "/var/app/openerp/server/openerp/modules/loading.py", line 348, in load_modules
    processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules, update_module)
  File "/var/app/openerp/server/openerp/modules/loading.py", line 259, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
  File "/var/app/openerp/server/openerp/modules/loading.py", line 190, in load_module_graph
    load_update_xml(module_name, idref, mode)
  File "/var/app/openerp/server/openerp/modules/loading.py", line 74, in <lambda>
    load_update_xml = lambda *args: _load_data(cr, *args, kind='update_xml')
  File "/var/app/openerp/server/openerp/modules/loading.py", line 112, in _load_data
    fp = tools.file_open(pathname)
  File "/var/app/openerp/server/openerp/tools/misc.py", line 173, in file_open
    return _fileopen(name, mode=mode, basedir=rtp, pathinfo=pathinfo, basename=basename)
  File "/var/app/openerp/server/openerp/tools/misc.py", line 220, in _fileopen
    raise IOError('File not found: %s' % basename)
IOError: File not found: rest/

**__openerp__.py**
{
    "name": "rest",
    "version": "7.0",
    "depends": ["base"],
    "author": "author",
    "category": "category",
    "description": "This module provide : test",
    "init_xml": [],
    'update_xml': [""],
    'demo_xml': [""],
    "data" : ["rest_view.xml"],
    'installable': True,
    'active': False,
}

**rest.py**
from osv import fields,osv

class rest(osv.osv):
    _name = 'rest'
    _columns = {
            'test' : fields.char("test")
                    }
rest()

**rest_view.xml**
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
    <data>
               <record model="ir.ui.view" id="rest_form_view">
                <field name="name">rest.form</field>
                <field name="model">rest</field>
                <field name="type">form</field>
                <field name="arch" type="xml">
                    <form string="form_rest">
                        <field name="test" select="1"/>
                    </form>
                </field>
            </record>


        <act_window name="rest_act"
            res_model="rest"
            src_model="rest"
            id="act_rest_id"/>
    <menuitem id="oone_id" name="oone" />
    <menuitem id="ttwo_id" name="ttwo" parent="oone_id" />
    <menuitem id="tthree_id" name="tthree" parent="ttwo_id" action="act_rest_id"/>
    </data>
</openerp>

This is my code for my custom module "rest". Point me the possibility for this error occurrence @ possible file.

4
Avatar
Opusti
Christian FOMEKONG

I think you didn't specify the entire path of your file

Avatar
Atchuthan
Avtor Best Answer
Hi guyz,
  This is my suggestion for my question: 
     Just delete the __openerp__.py file and retype the code again, also restart the openerp server. This worked for me whenever I got this problem.

     Technically, the error occurs @ action window (found by checking the code by eclipse debugger).
1
Avatar
Opusti
sridhar

Where is updated code...

Atchuthan
Avtor

<record model="ir.actions.act_window" id="action_rest_form"> <field name="name">rest</field> <field name="res_model">rest</field> </record>

Avatar
Yurdik Cervantes Mendoza
Best Answer

The problem is here:

    'update_xml': [""],
    'demo_xml': [""],

 just specify the empty brackets:

 'update_xml': [],
'demo_xml': [],
1
Avatar
Opusti
Avatar
Foungnigué Jean-Paul Soro
Best Answer

{
'name':'Todo application',
'description':'ce module permet de gerer vos différentes taches.',
'author':'SORO',
'depends':['mail'],
'application':True,
'data':[

'todo_view.xml'
'security/todo_access_rules.xml'
'security/ir.model.access.csv'

]

}


0
Avatar
Opusti
Avatar
Insemo.ch
Best Answer

I solved this issue by:

1 - deleting all .pyc file in the folder

2 - restart postrgresql service

3 - restart openerp service

4 - upgrade module in Odoo interface

I' can't explain why it works, but... It works...

0
Avatar
Opusti
Avatar
shiva
Best Answer

check your File permission using chmod 777 -R file_name

0
Avatar
Opusti
Avatar
sridhar
Best Answer
Update this code:

    {
    'name': 'rest',
    'version': '1.0',
    'depends': ['base'],
    'author': 'author',
    'category': 'category',
    'description': """This module provide : test""",
    'update_xml': [],
    "data" : ['rest_view.xml'],
    'installable': True,
    'active': False,
}

rest_view.xml
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
    <data>
               <record model="ir.ui.view" id="rest_form_view">
                <field name="name">rest.form</field>
                <field name="model">rest</field>
                <field name="type">form</field>
                <field name="arch" type="xml">
                    <form string="form_rest">
                        <field name="name" select="1"/>
                    </form>
                </field>
            </record>

            <act_window 
                name="rest_act"
                res_model="rest"
                src_model="rest"
                id="act_rest_id"/>
    <menuitem id="oone_id" name="oone" />
    <menuitem id="ttwo_id" name="ttwo" parent="oone_id" />
    <menuitem id="tthree_id" name="tthree" parent="ttwo_id" action="act_rest_id"/>

        </data>
</openerp>

rest.py
from openerp.osv import fields, osv



class rest(osv.osv):
    _name = 'rest'
    _columns = {
        'name':fields.char('Test',size=64),
    }
rest()

update this code it should be work.
0
Avatar
Opusti
Atchuthan
Avtor

Hi Sridhar, I have changed the code according to what u have given, then also the same error is coming...

sridhar

update this __openerp__.py code

Atchuthan
Avtor

after updating :

2013-05-22 10:41:01,162 12660 ERROR today openerp.osv.orm: Can't find field 'name' in the following view parts composing the view of object model 'rest': * rest.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model 2013-05-22 10:41:01,197 12660 ERROR today openerp.addons.base.ir.ir_ui_view: Can't render view for model: rest

Atchuthan
Avtor

When i tried your code before you modified your answer, I had the same error: IOError: File not found.

sridhar

send ur mail id i send it here it is working perfectly, or, uninstall the module and try it will work.

sridhar

in test_view.xml file go step by by step definitely it work. <openerp> <data> <record model="ir.ui.view" id="rest_form_view"> <field name="name">rest.form</field> <field name="model">rest</field> <field name="type">form</field> <field name="arch" type="xml"> <form string="form_rest"> <field name="name" select="1"/> </form> </field> </record> </data> </openerp> till run it. then,

sridhar

<openerp> <data> <record model="ir.ui.view" id="rest_form_view"> <field name="name">rest.form</field> <field name="model">rest</field> <field name="type">form</field> <field name="arch" type="xml"> <form string="form_rest"> <field name="name" select="1"/> </form> </field> </record>

    &lt;act_window 
        name="rest_act"
        res_model="rest"
        src_model="rest"
        id="act_rest_id"/&gt;

</data> </openerp> till run here, it will install here, then the final step add the full file your menu will come there.

Atchuthan
Avtor

Now after editing,

TypeError: VARCHAR parameter should be an int, got <type 'set'> 2013-05-23 05:27:18,591 6144 ERROR zzz openerp.netsvc: VARCHAR parameter should be an int, got <type 'set'>

sridhar

u replace your code and put it my code it will work sure.

Atchuthan
Avtor

I replaced to your code and its working fine, but there is no change in my code except change from "data" to "update_xml".

Atchuthan
Avtor

What was wrong in my files...?

sridhar

__openerp__.py have some changes "" is changed to single ' ' , some indent error solved in rest.py file that it.

sridhar

put right mark for this question..

Atchuthan
Avtor

We can use either " " or ' '. So what is the problem?

sridhar

"data" : ["rest_view.xml"], 'update_xml': [""], that is the main problem for this error, use ' single course that is better for coding.

sridhar

"data" : ["rest_view.xml"], 'update_xml': [""], its a syntax error that is the reason.

Atchuthan
Avtor

see this link in openerp documentation : https://doc.openerp.com/trunk/server/03_module_dev_01/#manifest-file-openerp-py

they have given that... we can use data instead of init_xml and update_xml...

Atchuthan
Avtor

i had made query regarding putting the view.xml file in init_xml and update_xml : http://help.openerp.com/question/17417/where-to-put-my-model_viewxml-in-initxml-or-updatexml/

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

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

Prijavi
Related Posts Odgovori Prikazi Aktivnost
?"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
1250
Error after installing "purchase" app in Odoo version 18
error
Avatar
Avatar
1
dec. 24
6940
error schema for TourStep Error
error
Avatar
0
nov. 24
2636
Can't modify manifest version of custom module [Odoo.sh]
error
Avatar
Avatar
Avatar
2
jul. 24
5351
Community
  • Tutorials
  • Dokumentacija
  • Forum
Open Source
  • Prenesi
  • Github
  • Runbot
  • Prevodi
Services
  • Odoo.sh Hosting
  • Podpora
  • Nadgradnja
  • Custom Developments
  • Izobraževanje
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Sredstva blagovne znamke
  • Kontakt
  • Zaposlitve
  • Dogodki
  • Podcast
  • Blog
  • Stranke
  • Pravno • Zasebnost
  • Varnost
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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