Closed jsebasmuller closed 1 year ago
Hello @jsebasmuller , yes you can using res_users model. Here is an example:
package main
import (
"log"
odoo "github.com/skilld-labs/go-odoo"
)
func main() {
c, err := odoo.NewClient(&odoo.ClientConfig{
Admin: "admin",
Password: "password",
Database: "odoo",
URL: "http://localhost:8069",
})
if err != nil {
log.Fatal(err)
}
u := &odoo.ResUsers{
Id: odoo.NewInt(190),
Password: odoo.NewString("somepassword"),
}
if err := c.UpdateResUsers(u); err != nil {
log.Fatal(err)
}
}
Thank u @ahuret
Hello friends, I have a small query and it is possible to make an endpoint with the library to make it possible to change the password of an odoo web user? Thank you very much for your answers.