Skip to Content
Menu
This question has been flagged
2 Replies
188 Views

When using RPC it seems I can "only" use a user. Same automation via Forms the models are created by OdooBot.

"create_uid": [
                1,
                "OdooBot"
            ],
            "write_uid": [
                4,
                "Public user"
            ],


Models created via RPC:

"create_uid": [
                2,
                "Administrator"
            ],
            "write_uid": [
                2,
                "Administrator"
            ],


So there is send an email by odoo bot. But I also don't find where it defined.



Avatar
Discard
Best Answer

OdooBot is the first user in the database and is a system internal user.
odoo.env.ref('base.user_root') 
You can confirm via SQL or the backend:
SELECT id, login, name FROM res_users WHERE id = 1;



Avatar
Discard
Author Best Answer

For me it is very interesting. This E-Mail is bound to a value (stage_id). SO when you transmit (set) this value, the E-Mail is sent.

Avatar
Discard