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
    • Estate 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

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
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

Odoo Studio import app (customisation) error?

Subscribe

Get notified when there's activity on this post

This question has been flagged
importcustomizationStudio
1 Reply
3974 Views
Avatar
Trần Hoàng Lộc

Hello everyone,

I have created an app and want to import it in another database (new Odoo Studio). I've managed to Export it by clicking Customization --> Export. On the new database, I clicked Cusomization --> Import but get the error as below:


RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "/home/odoo/src/odoo/saas-16.2/odoo/tools/cache.py", line 91, in lookup
r = d[key]
File "", line 2, in __getitem__
File "/home/odoo/src/odoo/saas-16.2/odoo/tools/func.py", line 87, in locked
return func(inst, *args, **kwargs)
File "/home/odoo/src/odoo/saas-16.2/odoo/tools/lru.py", line 34, in __getitem__
a = self.d[obj]
KeyError: ('ir.model.access', , 2, 'write')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/odoo/src/odoo/saas-16.2/odoo/http.py", line 1692, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "/home/odoo/src/odoo/saas-16.2/odoo/service/model.py", line 134, in retrying
result = func()
File "/home/odoo/src/odoo/saas-16.2/odoo/http.py", line 1719, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "/home/odoo/src/odoo/saas-16.2/odoo/http.py", line 1916, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "/home/odoo/src/odoo/saas-16.2/odoo/addons/base/models/ir_http.py", line 154, in _dispatch
result = endpoint(**request.params)
File "/home/odoo/src/odoo/saas-16.2/odoo/http.py", line 709, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/home/odoo/src/odoo/saas-16.2/addons/web/controllers/dataset.py", line 32, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/home/odoo/src/odoo/saas-16.2/addons/web/controllers/dataset.py", line 24, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/odoo/src/odoo/saas-16.2/odoo/api.py", line 461, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/home/odoo/src/odoo/saas-16.2/odoo/api.py", line 448, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/home/odoo/src/odoo/saas-16.2/addons/base_import_module/models/base_import_module.py", line 24, in import_module
self.write({'state': 'done', 'import_message': res[0]})
File "/home/odoo/src/odoo/saas-16.2/odoo/models.py", line 3722, in write
self.check_access_rights('write')
File "/home/odoo/src/odoo/saas-16.2/odoo/models.py", line 3508, in check_access_rights
return self.env['ir.model.access'].check(self._name, operation, raise_exception)
File "/home/odoo/src/odoo/saas-16.2/odoo/addons/base/models/ir_model.py", line 1812, in check
has_access = model in self._get_allowed_models(mode)
File "", line 2, in _get_allowed_models
File "/home/odoo/src/odoo/saas-16.2/odoo/tools/cache.py", line 96, in lookup
value = d[key] = self.method(*args, **kwargs)
File "/home/odoo/src/odoo/saas-16.2/odoo/addons/base/models/ir_model.py", line 1780, in _get_allowed_models
self.env.cr.execute(f"""
File "/home/odoo/src/odoo/saas-16.2/odoo/sql_db.py", line 311, in execute
res = self._obj.execute(query, params)
psycopg2.errors.InFailedSqlTransaction: current transaction is aborted, commands ignored until end of transaction block


The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
at makeErrorFromResponse (https://tuoitre-uit.odoo.com/web/assets/23-58d7efa/web.assets_backend.min.js:962:163)
at XMLHttpRequest. (https://tuoitre-uit.odoo.com/web/assets/23-58d7efa/web.assets_backend.min.js:970:13)


Database version:

Exported customization: 16.0+e

Imported customization: saas~16.2+e


I don't know where I have done wrong? Please help

0
Avatar
Discard
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Best Answer

Hi,

The error you're encountering indicates a problem with accessing or modifying certain database records during the import process. This could be caused by various factors, such as data inconsistencies, missing dependencies, or conflicts with existing data.

Here are some steps you can take to troubleshoot and resolve the issue:

  1. Check Data Consistency: Review the exported customization file to ensure that it contains valid data and references to existing records. Look for any anomalies or inconsistencies that could cause issues during the import process.
  2. Verify Dependencies: Ensure that all dependencies required by the exported customization are present and properly configured in the new database. This includes any custom modules, third-party addons, or external libraries that may be referenced in the customization.
  3. Review Error Logs: Examine the error logs and traceback messages provided in the error report. They may contain valuable information about the specific database operations that failed and the underlying cause of the problem.
  4. Database Integrity: Check the integrity of the database in both the source and destination environments. Verify that there are no data corruption issues or constraints violations that could interfere with the import process.
  5. Transaction Handling: The error message mentions a "failed SQL transaction." This suggests that there may be a problem with transaction handling or database locking. Try restarting the Odoo server and reattempting the import to see if the issue persists.
  6. Database Version Compatibility: Ensure that the exported customization is compatible with the version of Odoo running in the new database. Mismatched versions could lead to compatibility issues and errors during the import process

By following these steps and thoroughly investigating the error message, you should be able to identify and address the underlying cause of the import error in Odoo.


Hope it helps

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
Import Customization not working
import customization
Avatar
0
Feb 24
1562
Odoo 16 - Use Studio instead of Odoo.sh customisation
customization Studio
Avatar
Avatar
1
Feb 23
4027
How to subtract two dates in an Automated Action ? Solved
customization Studio
Avatar
1
Sep 21
4353
Studio Import Customization not working
import customization studio
Avatar
Avatar
1
Feb 24
2708
Auto Increment Odoo 17 Studio Fields Solved
customization purchases Studio odoo17
Avatar
Avatar
Avatar
2
Oct 24
4188
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 ภาษาไทย 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