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

Settings lost or rolled back

Subscribe

Get notified when there's activity on this post

This question has been flagged
3 Replies
5479 Views
Avatar
Vlad Ignatov

I'm configuring Odoo 17 Community and noticed a strange behavior.  In two places settings consistently revert back to default after logout/login.  Sometimes they stay.  Sometimes they are lost after switching users. Sometimes they are missing after the instance sits for a while.  At first I thought that maybe me changing other settings affects this, but I don't think I am changing anything now and it still keeps happening.  Not  sure what's going on.

- First issue is changing inventory valuation to Automatic and setting up the accounts for a Product Category.  This gets reverted back to Manual.

- Second is when I change "http" to "https" under Technical > Parameter > System Parameters > web.base.url   Same deal - it gets reverted to "http"


Anyone know what's going on?  Is database doing a rollback or not committing transaction for some reason?


EDIT:

Did more testing.  Inventory valuation method gets reset to Manual every time any setting is changed and I hit the "Save" button.


Also, to enable Automatic inventory valuation I added myself to: 

 - Technical / Stock Accounting Automatic group

 - Technical / Show Full Accounting Features group


Is there more to do to make it work properly?


This is a Bitnami Odoo 17 VM running on Debian 11, if it makes a difference.

0
Avatar
Discard
Chris TRINGHAM

Hi Vlad,

I tested this on Runboat, and it seems to work fine if you add the user to those two groups. I can set the Product Category to Automated and it does not get reverted.

(Also the code you added got deleted by the forum)

Vlad Ignatov
Author

That's weird.... I just tried on Runbot using version 17.0 and 17.1 and it behaves exactly as I described. Settings are lost.

Just to clarify, here are the steps to reproduce:

1) Log in as Admin and enable Developer mode.
2) Add the Admin user to
- Technical / Stock Accounting Automatic group
- Technical / Show Full Accounting Features group
3) Switch to Inventory module. Then Configuration > Product Categories
4) Pick a product category (I picked All / Salable) and change it to Automatic inventory valuation. Save settings.
5) Switch to Settings and immediately click Save without making any changes.
6) Go back to the Product Category that you se to Automatic and verify that your change has been reverted.

Chris TRINGHAM

OK, so you can report it to Odoo in GitHub (but I still can't recreate it).

Avatar
Vlad Ignatov
Author Best Answer

I think I solved it.  It seems that for automatic inventory to work properly res_config_setting.group_stock_accounting_automatic must be set in the database.  Problem is, even if you manually set it in the database it will get wiped out next time you click "Save" button to save settings in the Settings menu.  Even if you did not change any settings.


So, you need to expose this setting and set it in the UI.  I added an extension view to res.config.settings.view.form.inherit.base.setup with the following code to make that happen.

      


0
Avatar
Discard
Vlad Ignatov
Author

For whatever reason my code gets wiped out after posting… the idea is to add a checkbox to the Setting menu, which allows control of the flag set in the group_stock_accounting_automatic column.

Avatar
Niyas Raphy (Walnut Software Solutions)
Best Answer

Hi,
The issue has been reported in:  https://github.com/odoo/odoo/issues/159651

Thanks



0
Avatar
Discard
Vlad Ignatov
Author

Thanks Niyas! I also reported it when encountered first, so now we have two issues opened for the same thing. https://github.com/odoo/odoo/issues/156226

Avatar
Moe Sana
Best Answer

Hi Vlad,

I am having the same issue and keep getting valuation as manual. Can you please show me on how to fix this in odoo17CU. I saw that you are not able to post the code. Maybe you can share it over email with appreciation. 

Is it possible to set this in the Fields section?

moe@sdsqatar.com

0
Avatar
Discard
Vlad Ignatov
Author

Moe, I added a screenshot of the code to my answer. Still can't post straight code, but can post pictures. You'll have to retype it. Hope this helps.

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