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

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.

主站蜘蛛池模板: 信丰县| 承德市| 大方县| 连云港市| 集安市| 淮阳县| 原平市| 阳城县| 辽宁省| 上蔡县| 阜南县| 六安市| 巨野县| 个旧市| 东乡| 辉县市| 玉树县| 嘉鱼县| 衡阳市| 剑川县| 磐石市| 盖州市| 太原市| 伊宁市| 漳州市| 临海市| 桐乡市| 南昌县| 历史| 马山县| 五寨县| 米林县| 家居| 温州市| 汉源县| 大石桥市| 平山县| 陇西县| 大悟县| 沙雅县| 阜新市|