Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Managament
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Producție
    • Textile
    • Metal
    • Furnitures
    • Food
    • 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
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

import init file in open erp

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
moduleaddoninit
7182 Vizualizări
Imagine profil
bakhtawar

first i create a module in eclipse using addons-new-PyDevPackage then in allocation i got to file-peydev module then i create a _openerp_.py and i write this code

Created on Nov 27, 2013

{ 
'name' : "Allocation",
'version': "1.0",
'author': "abc",
'category': "Tools",
'depends' : ["asset"],
'data': [
       'allocation_view.xml',
        ],
        'demo':[
             'allocation_demo.xml
             ],
             'installable': True,
 }

@author: abc '''

then when i import this in init file like impoort Allocation it shows me error

Description Resource Path Location Type Unresolved import: Allocation __init__.py

how i import?

0
Imagine profil
Abandonează
Gopakumar N G

Post the server log and your __init__.py file.

bakhtawar
Autor

when i open _init_py.file and write import Allocation then it shows me error and server log means?

bakhtawar
Autor

pleae tell me i really need help about this :(

Gopakumar N G

Do you have a file named Allocation.py in your module? There is single quote (') missing in your __openerp__.py file's 'demo':[ 'allocation_demo.xml ], After allocation_demo.xml, correct it also.

bakhtawar
Autor

yes i have a file allocation.py but i havent code in it

Gopakumar N G

Ok. There is only one line in your __init__.py file and which is import allocation. Is "allocation.py" is name of your python file? In init file we import the python files we have created in our module.

Gopakumar N G

Your init file contains import allocation and the file name is allocation.py right? Are the spelling of file allocation is same in init.py? Also let me know the directory structure, is your module is in addons folder?

bakhtawar
Autor

yes spellin are correct and when i create modulue in the director of addons the modulue also their in addons folder

Gopakumar N G

Are you running the server on ubuntu? if yes then what is the error shown in the terminal?

bakhtawar
Autor

i am using windows 7

Gopakumar N G

Check the log file for the error description, the log file is in the server folder of your openerp installation. http://forum.openerp.com/forum/topic24127.html

Pravitha

is it import Allocation or import allocation that you have written?

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

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

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
Module Not Shown In Open ERP
module addon
Imagine profil
Imagine profil
1
mar. 15
5175
How do I migrate data to new version of schema when I update my custom addons? Rezolvat
module addon model
Imagine profil
Imagine profil
Imagine profil
2
mar. 15
7409
What is the difference between an App, an Addon and a Module? Rezolvat
modules module addons addon
Imagine profil
Imagine profil
Imagine profil
Imagine profil
4
dec. 23
30031
Sales Region in Sale Module Openerp 7
sales module addon region
Imagine profil
0
mar. 15
4567
Add-on for complete fixed asset management-Odoo Community 18
addon
Imagine profil
Imagine profil
Imagine profil
2
iul. 25
2313
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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