The user executing an action triggering an base automation may not have access to the base.automation record itself (regular employee or portal) Added test test_on_create_restricted failed before this patch as the portal does not have the rights to read the base.automation record Fixes odoo/odoo#59680 X-original-commit: 33a7142f298eeda7808d6d07e80231836442a0ce