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

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.

主站蜘蛛池模板: 营山县| 宜宾市| 滨海县| 普洱| 沾益县| 霍林郭勒市| 胶州市| 龙口市| 古交市| 鹤庆县| 灵山县| 旌德县| 迁西县| 东乡族自治县| 来宾市| 镇江市| 望谟县| 吉安市| 上虞市| 射洪县| 新田县| 辽阳市| 江油市| 榆中县| 巴彦淖尔市| 会理县| 调兵山市| 陕西省| 丰原市| 泰州市| 乡宁县| 柘荣县| 大理市| 九龙坡区| 宕昌县| 盐山县| 左云县| 英超| 闽清县| 双辽市| 银川市|