官术网_书友最值得收藏!

Setting up access security

You might have noticed that, upon loading, our module is getting a warning message in the server log:

The model todo.task has no access rules, consider adding one. 

The message is pretty clear: our new model has no access rules, so it can't be used by anyone other than the admin superuser. As a superuser, the admin ignores data access rules, and that's why we were able to use the form without errors. But we must fix this before other users can use our model.

Another issue we have yet to address is that we want the To-Do tasks to be private to each user. Odoo supports row-level access rules, which we can use to implement that.

主站蜘蛛池模板: 清水县| 南昌市| 安溪县| 二连浩特市| 江安县| 宜章县| 阿荣旗| 壤塘县| 铁岭县| 台南县| 衡山县| 翁牛特旗| 舟曲县| 安仁县| 工布江达县| 章丘市| 金塔县| 汉川市| 台中市| 宿州市| 涟源市| 柞水县| 固阳县| 徐州市| 德安县| 宣汉县| 垫江县| 陈巴尔虎旗| 上犹县| 通许县| 苍溪县| 天等县| 贺州市| 高清| 绥芬河市| 东至县| 吉林市| 文水县| 正定县| 青神县| 资兴市|