- Add blank lines at end of python files (pep8) - Easier uncomment (entire blocks, and no remaining whitespaces in empty lines) - Add `_description` to model to avoid the warning telling it's missing - Correct compute field, `self.value` raised an `ensure_one` issue - Change access so the user can add/edit/delete records in the web interface by default - Correct the server action, `self` is not in the server action context. closes odoo/odoo#40659 X-original-commit: 622615771d0a6f8544f6810f30df46aea0e0fb9c Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
7 lines
361 B
Plaintext
7 lines
361 B
Plaintext
{%- 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
|