Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Settings lost or rolled back

Subscriure's

Get notified when there's activity on this post

This question has been flagged
3 Respostes
5493 Vistes
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
Descartar
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
Autor

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
Autor 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
Descartar
Vlad Ignatov
Autor

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
Descartar
Vlad Ignatov
Autor

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
Descartar
Vlad Ignatov
Autor

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!

Registrar-se
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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