Skip to content

Commit 934f768

Browse files
committed
Add .csv odoo acess snippets
1 parent 4b9222d commit 934f768

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"odoo",
2424
"snippets",
2525
"python",
26-
"xml"
26+
"xml",
27+
"csv"
2728
],
2829
"bugs": {
2930
"url": "https://github.com/mstuttgart/vscode-odoo-snippets/issues",
@@ -42,6 +43,10 @@
4243
{
4344
"language": "xml",
4445
"path": "./snippets/xml.json"
46+
},
47+
{
48+
"language": "csv",
49+
"path": "./snippets/csv.json"
4550
}
4651
]
4752
}

snippets/csv.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
{
3+
"odoo_access_columns": {
4+
"prefix": "ocolumns",
5+
"body": [
6+
"id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink\n"
7+
],
8+
"description": "Add Access Columns"
9+
},
10+
"odoo_access_entry": {
11+
"prefix": "oaccess",
12+
"body": [
13+
"access_${1:model_technical_name}_${2:group_name},${3:${1/[_]/./g}}.${4:${2/[_]/./g}},model_${5:${1}},${6:group.name},${7|1,0|},${8|1,0|},${9|1,0|},${10|1,0|}\n"
14+
],
15+
"description": "Add entry to Access Group"
16+
}
17+
}

0 commit comments

Comments
 (0)