Skip to content

Commit 2fc50ce

Browse files
committed
Add wizard snippets
1 parent a62bdc9 commit 2fc50ce

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

snippets/python.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,28 @@
5555
],
5656
"description": "Inherit Existing Odoo Model"
5757
},
58+
"odoo_new_wizard": {
59+
"prefix": "owiz",
60+
"body": [
61+
"from odoo import fields, models",
62+
"\n\nclass ${1:ModuleName}(models.TransientModel):",
63+
"\t_name = '${2:module.name}'",
64+
"\t_description = '${3:New Description}'",
65+
"\n\tname = fields.Char(string='Name')",
66+
"$0"
67+
],
68+
"description": "Create New Odoo Wizard"
69+
},
70+
"odoo_inherit_wizard": {
71+
"prefix": "owizi",
72+
"body": [
73+
"from odoo import models",
74+
"\n\nclass ${1:ModuleName}(models.TransientModel):",
75+
"\t_inherit = '${2:module.name}'",
76+
"$0"
77+
],
78+
"description": "Inherit Existing Odoo Wizard"
79+
},
5880
"odoo_test_model": {
5981
"prefix": "omodt",
6082
"body": [

0 commit comments

Comments
 (0)