Skip to content

Commit fa6e6c0

Browse files
committed
[NEW] Add unlink snippet
1 parent 121d206 commit fa6e6c0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

snippets/python.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,17 @@
193193
],
194194
"description": "Add a method write"
195195
},
196+
"odoo_method_unlink": {
197+
"prefix": "omunlink",
198+
"body": [
199+
"@api.multi",
200+
"def unlink(self):",
201+
"\t# Add code here",
202+
"\treturn super(${1:ClassName}, self).unlink()",
203+
"$0"
204+
],
205+
"description": "Add a method unlink"
206+
},
196207
"odoo_method_compute": {
197208
"prefix": "omcomp",
198209
"body": [

0 commit comments

Comments
 (0)