Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initdb/copydb: option to set admin password #52

Open
sbidoul opened this issue Jul 17, 2019 · 6 comments
Open

initdb/copydb: option to set admin password #52

sbidoul opened this issue Jul 17, 2019 · 6 comments
Labels
enhancement New feature or request

Comments

@sbidoul
Copy link
Member

sbidoul commented Jul 17, 2019

No description provided.

@sbidoul sbidoul added the enhancement New feature or request label Jul 17, 2019
@flotho
Copy link

flotho commented Aug 11, 2021

What would be the process here?
will you pass through SQL or via Odoo CLI ?
Regards

@sbidoul
Copy link
Member Author

sbidoul commented Aug 11, 2021

It's just an idea, I've not investigated. I'm not even sure what would qualify as the "admin user". Perhaps what this should do is create a new user with admin rights. Suggestions welcome.

@flotho
Copy link

flotho commented Aug 11, 2021

I think it depends on the release so it could be difficult to maintain such a process.
Maybe the easier way to do this is to change ll the user pass that are active once installed and before instlling other modules.
In this case everything will work perfectly.

Regards

@kmagusiak
Copy link
Contributor

This might be partially solved in #112 with the option to reset the password for all users.
FYI Usually at Odoo they call admin the user with id=2.

@voronind
Copy link
Contributor

Copying database and setting password is two different things. There is no reason join this functionality. It's better to have stand-alone script that can reset passwords.

@kmagusiak
Copy link
Contributor

Copying database and setting password is two different things. There is no reason join this functionality. It's better to have stand-alone script that can reset passwords.

Indeed they should be separated.
copydb is already there: https://github.com/acsone/click-odoo-contrib/blob/master/click_odoo_contrib/copydb.py#L131
I have written resetdb in a PR there: #113. It allows to reset the admin password and some other settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants