Skip to content

OpenCode/vsc-odoo-snippets

Repository files navigation

Odoo Snippets for Visual Studio Code

Add snippets for Odoo from 9.0 to 13.0

List of Snippets for type

Python

Snippet Result
env.odoo self.env with multi selection
@api.odoo @api with multi selection
fields.binary.odoo Odoo field binary
fields.boolean.odoo Odoo field boolean
fields.char.odoo Odoo field char
fields.text.odoo Odoo field text
fields.html.odoo Odoo field html
fields.int.odoo Odoo field integrer
fields.float.odoo Odoo field float
fields.date.odoo Odoo field date
fields.datetime.odoo Odoo field datetime
fields.selection.odoo Odoo field selection
fields.many2one.odoo Odoo field many2one
fields.many2many.odoo Odoo field many2many
fields.one2many.odoo Odoo field one2many
class.odoo Basic new Odoo class
class.inherit.odoo Inherit an existing Odoo class
compute.odoo Compute function
create.odoo Create Function
write.odoo Write Function
unlink.odoo Unlink Function
onchange.odoo Onchange Function
copy.odoo Copy Function
sql.constraints.odoo SQL Constraints
import.odoo Import Odoo
exceptions.import.odoo Import Exceptions Odoo
exceptions.odoo Available Exceptions

XML

Snippet Result
field.odoo Field
field.sum.odoo Sum on field
field.attribute.odoo Attributes of a field
field.attrs.odoo Attrs of a field
field.widget.odoo List of all the widget for a field
field.options.odoo Options for a field
button.object.odoo Button object
button.action.odoo Button action
form.odoo Form view
form.inherit.odoo Form view inherit
tree.odoo Tree view
tree.inherit.odoo Tree view inherit
tree.decoration.odoo Decoration for a tree view
tree.options.odoo Create, edit and delete options for a tree view
tree.editable.odoo Top or Botton editable options for a tree view
calendar.odoo Calendar view
graph.odoo Graph view
pivot.odoo Pivot view
search.odoo Search view
action.odoo Action view
menuitem.odoo Menuitem view
menuitem.root.odoo Menuitem view with no parent and action

Support

Buy Me A Coffee

Releases

No releases published

Packages

No packages published