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

A series of weird events !

Subscribe

Get notified when there's activity on this post

This question has been flagged
backuprestoreiconsimages
1 Reply
4144 Views
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
Discard
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
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
How to Restore Odoo Online Database? Solved
backup restore
Avatar
Avatar
Avatar
Avatar
3
Sep 25
9675
Backup procedure for Odoo 14 CE Solved
backup restore
Avatar
Avatar
1
May 21
4936
backup in linux and shift to windows
backup restore
Avatar
Avatar
1
Mar 24
7290
Can you tell me how we do a complete backup and restore in odoo ?
backup restore
Avatar
Avatar
Avatar
3
Aug 16
5423
Backup and restore odoo 8
backup restore
Avatar
0
Mar 16
5066
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