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č

A series of weird events !

Naroči se

Get notified when there's activity on this post

This question has been flagged
backuprestoreiconsimages
1 Odgovori
4147 Prikazi
Avatar
hesham.elmahdy@odootec.com

Sorry for the catchy subject but I could not even write a properly conclusive question.

Here is what happened in sequence:

  1. Odoo 10 Community. All was going well.

  2. installed a responsive backend them to be able to use Odoo Community from mobile browser.

  3. I configures incoming mail. that caused my entire google inbox emails to come into odoo. DB size increased to 500GB. That made taking backup a painful issue.

  4. To solve the size problem, I deleted half of attachment records (which seemed to be regular emails)

  5. Then things started getting a bit weird: customer photos disappeared

  6. I then though I by mistake deleted photos from attachment model. Though I know that customer images are store in res.partner model as binary

  7. We decided then to to go to an earlier back and restore it. We did, but things got more weird.

  8. Customer photos still did not show, and moreover, the button icons disappeared !! Though that earlier backup was taken when everything was going well

  9. We kept restoring older backups and still the issue persisted !!

  10. To our surprise some customer photos showed but some did not. And when we open any customer view, a red message keeps scrolling bottom to top saying: "could not display the selected image" !

  11. Then we decided to go create a fresh virtual server on Amazon and restore the oldest Odoo 10 ce database we had.

  12. After restore was completed we got this error:

  • Database restore error: insert or update on table "ir_property" violates foreign key constraint "ir_property_fields_id_fkey" DETAIL: Key (fields_id)=(2490) is not present in table "ir_model_fields".

    And here is the image of the photo error:


Can anyone explain what is happening?

0
Avatar
Opusti
Avatar
ayman mohammed adam
Best Answer

dear Mr. Hesham ELMADY,

Any documents or images attached it will be saved on filestore as physically and in the DB it saved as apath when you remove the attachments from the Odoo GUI that means you remove the record and the path from the DB.

From that point the images or attachments cannot find the path, then it make that problems. 

Trying to login into new restored DB, ignore that error, If success you need to merge all directories from .../.local/share/Odoo/filestore/Old-DB-Name

with .../.local/share/Odoo/filestore/New-DB-Name

That path it have all the attachment.

I hope I helped you ...


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
How to Restore Odoo Online Database? Solved
backup restore
Avatar
Avatar
Avatar
Avatar
3
sep. 25
9700
Backup procedure for Odoo 14 CE Solved
backup restore
Avatar
Avatar
1
maj 21
4938
backup in linux and shift to windows
backup restore
Avatar
Avatar
1
mar. 24
7296
Can you tell me how we do a complete backup and restore in odoo ?
backup restore
Avatar
Avatar
Avatar
3
avg. 16
5427
Backup and restore odoo 8
backup restore
Avatar
0
mar. 16
5069
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