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

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.

主站蜘蛛池模板: 凤庆县| 吉安县| 仪征市| 唐山市| 邢台县| 黔西| 商洛市| 梁平县| 前郭尔| 来凤县| 五家渠市| 大方县| 扎兰屯市| 景东| 望奎县| 临朐县| 景洪市| 金川县| 渭源县| 肇东市| 会泽县| 洛扎县| 辉县市| 毕节市| 宁陕县| 金乡县| 隆子县| 开远市| 彭山县| 钟山县| 辽阳县| 镇江市| 郎溪县| 福安市| 大安市| 突泉县| 黄浦区| 广德县| 报价| 视频| 博爱县|