跳至内容
菜单
此问题已终结
2 回复
193 查看

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.



形象
丢弃
最佳答案

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;



形象
丢弃
编写者 最佳答案

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.

形象
丢弃