odoo_17.0.1/odoo/cli/templates/default/security/ir.model.access.csv.template

7 lines
361 B
Plaintext
Raw Permalink Normal View History

{%- set snake_name = name|snake -%}
{%- set id = "access_%s_%s"|format(snake_name, snake_name) -%}
{%- set name = "%s.%s"|format(snake_name, snake_name) -%}
{%- set model_id = "model_%s_%s"|format(snake_name, snake_name) -%}
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
{{ id }},{{ name }},{{ model_id }},base.group_user,1,1,1,1