Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    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
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & 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
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Message d'erreur : Error while importing module

Subscribe

Get notified when there's activity on this post

This question has been flagged
xmlimportant!odoo16features
2 Replies
4137 Views
Avatar
Anonyme3500

Hello,

It's been a few days now that I have been working on creating an application in Odoo 16 so that I can directly import it into the application module!
Let me explain, I have created a folder that we will name D1, it contains 4 sub-folders that we will name: models, controllers, views, and report.
The error message that Odoo displays when importing the zipped folder is:


Error while importing module 'D1'. Element odoo has extra content: data, line 2 Make sure those modules are installed and try again.


I was informed that this error message concerns the XML files in my folder and in the previously specified sub-folders!


- I have 3 XML files and here is their code, file menu_contrat.xml :







- The contrat_view.xml file contains the following code :




















And finally, the last XML file named contrat_report.xml:

#
#
#
#
#
#
#

#

Contrat


#

Nom:


#

Prénom:


#

Adresse:


#

Téléphone fixe:


#

Téléphone portable:


#

Débit:


#

Prix:


#

#
#
#
#
#
#

Do you think it's because of the spaces that Odoo16 displays this error message to me? Or is there a syntax error somewhere and I can't see it?

Can you please help me with this because when I try to import it, the application is installed correctly but Odoo won't let me activate my application!

If you would like to view my coding in python (if necessary), please let me know.

Thank you very much in advance for your help and answers!

PS: I added the '#' symbol just in this conversion, it's not in the code, please ignore these symbols thank you!

0
Avatar
Discard
Avatar
Anonyme3500
Author Best Answer

Hi Apiuser,

I did include a manifest.py, but not an _init_.py, I don't know what to code, can you please give me a code? 


Another question, can you see my code? because I can't see what code I wrote in the conversation.

And by the way, thank you for your previous answer.

0
Avatar
Discard
Niyas Raphy (Walnut Software Solutions)

see if this video helps: https://www.youtube.com/watch?v=IeJFxmCG2Qs&t=1339s

Anonyme3500
Author

Thank you Niyas Raphy for your answer, I will immediately watch the video and I will come back in case of any problems!

Avatar
Apiuser
Best Answer

Did you also include a _init_.py and _manifest_.py in D1?

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

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

Sign up
Related Posts Replies Views Activity
warnings.warn(f"The <act_window> tag is deprecated, use a <record> for {xml_id!r}.", DeprecationWarning)
xml odoo16features
Avatar
Avatar
Avatar
2
Jun 23
6709
(Odoo 16) widget: many2many_checkboxes need more features
xml widget odoo16features
Avatar
Avatar
1
May 24
3584
Problem with an invisible condition in an XML template file
xml plugin odoo16features
Avatar
1
Apr 24
3510
How to make a field ReadOnly in Inherited View Based on Groups Using Xpath
xml groups odoo16features
Avatar
Avatar
1
Feb 24
5058
How to make a field ReadOnly in Inherited View Based on Groups Using Xpath
xml groups odoo16features
Avatar
0
Feb 24
10
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 Svenska ภาษาไทย 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