Skip to content

Commit a9a3cb7

Browse files
committed
[FIX] Fix type of field Selection snippet
1 parent 7fa6c92 commit a9a3cb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

snippets/python.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
"odoo_field_selection": {
143143
"prefix": "ofsel",
144144
"body": [
145-
"${1:new_field} = fields.Integer(string='${1}', required=${2:False}, selection=[('${3}', '${4}'), ('${5}', '${6}'), ])",
145+
"${1:new_field} = fields.Selection(string='${1}', required=${2:False}, selection=[('${3}', '${4}'), ('${5}', '${6}'), ])",
146146
"$0"
147147
],
148148
"description": "Add new field of type Selection"
@@ -213,4 +213,4 @@
213213
],
214214
"description": "Add a method onchange"
215215
}
216-
}
216+
}

0 commit comments

Comments
 (0)