From ade054b7523b7c077d102596d9221121d9126bb9 Mon Sep 17 00:00:00 2001 From: Elias <91657755+elre-odoo@users.noreply.github.com> Date: Thu, 6 Oct 2022 09:25:21 +0000 Subject: [PATCH] [FIX] developer/howtos/rdtraining: Update warning message Update warning output for missing access rules. Also reflect up-to-date contents of res.country.state.csv. closes odoo/documentation#2826 X-original-commit: e21dbd01c9f4fab2507cd791cd0cefe9cdbfa2d7 Signed-off-by: Victor Feyens (vfe) --- .../howtos/rdtraining/05_securityintro.rst | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/content/developer/howtos/rdtraining/05_securityintro.rst b/content/developer/howtos/rdtraining/05_securityintro.rst index 77e9c9e40..7843ff667 100644 --- a/content/developer/howtos/rdtraining/05_securityintro.rst +++ b/content/developer/howtos/rdtraining/05_securityintro.rst @@ -24,10 +24,10 @@ which is loaded at installation of the ``base`` module. .. code-block:: text "id","country_id:id","name","code" - state_us_1,us,"Alabama","AL" - state_us_2,us,"Alaska","AK" - state_us_3,us,"Arizona","AZ" - state_us_4,us,"Arkansas","AR" + state_au_1,au,"Australian Capital Territory","ACT" + state_au_2,au,"New South Wales","NSW" + state_au_3,au,"Northern Territory","NT" + state_au_4,au,"Queensland","QLD" ... - ``id`` is an :term:`external identifier`. It can be used to refer to the record @@ -77,14 +77,15 @@ Access Rights .. code-block:: text - WARNING rd-demo odoo.modules.loading: The model estate.property has no access rules... + WARNING rd-demo odoo.modules.loading: The models ['estate.property'] have no access rules... When no access rights are defined on a model, Odoo determines that no users can access the data. It is even notified in the log: .. code-block:: text - WARNING rd-demo odoo.modules.loading: The model estate.property has no access rules, consider adding one. E.g. access_estate_property,access_estate_property,model_estate_property,base.group_user,1,0,0,0 + WARNING rd-demo odoo.modules.loading: The models ['estate.property'] have no access rules in module estate, consider adding some, like: + id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink Access rights are defined as records of the model ``ir.model.access``. Each access right is associated with a model, a group (or no group for global