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č

Odoo Studio import app (customisation) error?

Naroči se

Get notified when there's activity on this post

This question has been flagged
importcustomizationStudio
1 Odgovori
4041 Prikazi
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
Opusti
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
Opusti
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
Import Customization not working
import customization
Avatar
0
feb. 24
1597
Odoo 16 - Use Studio instead of Odoo.sh customisation
customization Studio
Avatar
Avatar
1
feb. 23
4070
How to subtract two dates in an Automated Action ? Solved
customization Studio
Avatar
1
sep. 21
4406
Studio Import Customization not working
import customization studio
Avatar
Avatar
1
feb. 24
2773
Auto Increment Odoo 17 Studio Fields Solved
customization purchases Studio odoo17
Avatar
Avatar
Avatar
2
okt. 24
4274
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