Skip to content

Commit a62bdc9

Browse files
committed
Simplify model snippets
1 parent a05e0c8 commit a62bdc9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

snippets/python.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,9 @@
4848
"odoo_inherit_model": {
4949
"prefix": "omodi",
5050
"body": [
51-
"from odoo import api, fields, models",
51+
"from odoo import models",
5252
"\n\nclass ${1:ModuleName}(models.Model):",
5353
"\t_inherit = '${2:module.name}'",
54-
"\n\tname = fields.Char(string='Name')",
5554
"$0"
5655
],
5756
"description": "Inherit Existing Odoo Model"

0 commit comments

Comments
 (0)