Skip to content

Commit 9798e38

Browse files
committed
Add odoo import snippets
1 parent 595412a commit 9798e38

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

snippets/python.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,5 +271,21 @@
271271
"$0"
272272
],
273273
"description": "Get the user's company record"
274+
},
275+
"odoo_import_odoo": {
276+
"prefix": "oimpex",
277+
"body": [
278+
"from odoo.exceptions import _, api, fields, models",
279+
"$0"
280+
],
281+
"description" : "Add Import to Odoo"
282+
},
283+
"odoo_import_odoo_exceptions": {
284+
"prefix": "oimper",
285+
"body": [
286+
"from odoo.exceptions import ${1|ValidationError,RedirectWarning,AccessDenied,AccessError,CacheMiss,MissingError,UserError|}",
287+
"$0"
288+
],
289+
"description" : "Add Import to Odoo Exceptions"
274290
}
275291
}

0 commit comments

Comments
 (0)