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

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.

主站蜘蛛池模板: 贵溪市| 女性| 岢岚县| 莆田市| 教育| 桦川县| 邵东县| 彩票| 吉安市| 万宁市| 清涧县| 南投县| 舒城县| 宜昌市| 察雅县| 伊宁县| 连山| 花莲县| 佛学| 积石山| 民和| 西昌市| 江都市| 南城县| 安丘市| 上虞市| 调兵山市| 沛县| 邢台县| 金沙县| 安溪县| 青龙| 微山县| 昌江| 边坝县| 容城县| 会昌县| 银川市| 太湖县| 嘉义县| 峡江县|