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.
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)
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.
OK, so you can report it to Odoo in GitHub (but I still can't recreate it).