{"id":16105532,"url":"https://github.com/mstuttgart/odoo-snippets","last_synced_at":"2025-03-16T08:32:32.469Z","repository":{"id":149231521,"uuid":"123209260","full_name":"mstuttgart/odoo-snippets","owner":"mstuttgart","description":"Develop Odoo modules faster and with no Typing Errors.","archived":false,"fork":false,"pushed_at":"2024-05-02T16:13:14.000Z","size":153,"stargazers_count":28,"open_issues_count":0,"forks_count":16,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-02-27T05:55:58.525Z","etag":null,"topics":["extension","hacktoberfest","neovim-plugin","nvim","odoo","python","snippets","tools","vscode","webdevelopment","xml"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=mstuttgart.odoo-snippets","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mstuttgart.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"ko_fi":"mstuttgart"}},"created_at":"2018-02-28T01:09:11.000Z","updated_at":"2024-12-25T03:33:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"f0eb5a02-5136-424e-995e-a0f7fc9f5cbe","html_url":"https://github.com/mstuttgart/odoo-snippets","commit_stats":null,"previous_names":["mstuttgart/odoo-snippets"],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mstuttgart%2Fodoo-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mstuttgart%2Fodoo-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mstuttgart%2Fodoo-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mstuttgart%2Fodoo-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mstuttgart","download_url":"https://codeload.github.com/mstuttgart/odoo-snippets/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243806071,"owners_count":20350775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["extension","hacktoberfest","neovim-plugin","nvim","odoo","python","snippets","tools","vscode","webdevelopment","xml"],"created_at":"2024-10-09T19:09:51.676Z","updated_at":"2025-03-16T08:32:32.135Z","avatar_url":"https://github.com/mstuttgart.png","language":"Lua","funding_links":["https://ko-fi.com/mstuttgart"],"categories":[],"sub_categories":[],"readme":"\n\u003ch1 align=\"center\"\u003e\n  \u003cbr\u003e\n  \u003ca href=\"https://marketplace.visualstudio.com/items?itemName=mstuttgart.odoo-snippets\"\u003e\n  \u003cimg src=\"https://github.com/mstuttgart/vscode-odoo-snippets/blob/main/images/icon.png?raw=true\"\u003e\u003c/a\u003e\n  \u003cbr\u003e\n  Odoo Snippets\n  \u003cbr\u003e\n\u003c/h1\u003e\n\n\u003ch4 align=\"center\"\u003eDevelop Odoo modules faster and with no Typing Errors\u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://marketplace.visualstudio.com/items?itemName=mstuttgart.odoo-snippets\"\u003e\n    \u003cimg src=\"https://vsmarketplacebadges.dev/version-short/mstuttgart.odoo-snippets.png?style=for-the-badge\u0026color=875A7B\" alt=\"Version\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://marketplace.visualstudio.com/items?itemName=mstuttgart.odoo-snippets\"\u003e\n\u003cimg alt=\"Visual Studio Marketplace Installs\" src=\"https://img.shields.io/visual-studio-marketplace/i/mstuttgart.odoo-snippets?color=875A7B\u0026style=for-the-badge\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://marketplace.visualstudio.com/items?itemName=mstuttgart.odoo-snippets\"\u003e\n\u003cimg alt=\"Visual Studio Marketplace Downloads\" src=\"https://img.shields.io/visual-studio-marketplace/d/mstuttgart.odoo-snippets?color=875A7B\u0026style=for-the-badge\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://marketplace.visualstudio.com/items?itemName=mstuttgart.odoo-snippets\"\u003e\n\u003cimg alt=\"Visual Studio Marketplace Rating\" src=\"https://img.shields.io/visual-studio-marketplace/r/mstuttgart.odoo-snippets?color=875A7B\u0026style=for-the-badge\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003ch4 align=\"center\"\u003eWorks on\u003c/h4\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://neovim.io/\"\u003e\n     \u003cimg alt=\"Neovim\" src=\"https://img.shields.io/badge/Tools-Neovim-informational?style=for-the-badge\u0026logo=neovim\u0026logoColor=white\u0026color=bed5c5\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://code.visualstudio.com/\"\u003e\n     \u003cimg alt=\"VsCode\" src=\"https://img.shields.io/badge/Tools-Vscode-informational?style=for-the-badge\u0026logo=visualstudiocode\u0026logoColor=white\u0026color=bed5c5\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#about\"\u003eAbout\u003c/a\u003e |\n  \u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e |\n  \u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e |\n  \u003ca href=\"#contributing\"\u003eContributing\u003c/a\u003e |\n  \u003ca href=\"#release-notes\"\u003eRelease Notes\u003c/a\u003e | \n  \u003ca href=\"#credits\"\u003eCredits\u003c/a\u003e\n\u003c/p\u003e\n\n## About\n\nThis extension works on [VsCode](https://code.visualstudio.com) and [Neovim](https://neovim.io/). This add code snippets for [Odoo](https://www.odoo.com) to help you to develop Odoo modules faster and with no Typing Errors on .\n\nAll snippets follow the [OCA Maintainer Guidelines](https://github.com/OCA/maintainer-tools/blob/master/CONTRIBUTING.md) and are made to Odoo version `12.0`+.\n\n## Installation\n\n### VsCode\n\nLaunch *Quick Open*\n  - \u003cimg src=\"https://www.kernel.org/theme/images/logos/favicon.png\" width=16 height=16/\u003e \u003ca href=\"https://code.visualstudio.com/shortcuts/keyboard-shortcuts-linux.pdf\"\u003eLinux\u003c/a\u003e `Ctrl+P`\n  - \u003cimg src=\"https://developer.apple.com/favicon.ico\" width=16 height=16/\u003e \u003ca href=\"https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf\"\u003emacOS\u003c/a\u003e `⌘P`\n  - \u003cimg src=\"https://www.microsoft.com/favicon.ico\" width=16 height=16/\u003e \u003ca href=\"https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf\"\u003eWindows\u003c/a\u003e `Ctrl+P`\n\nPaste the following command and press `Enter`:\n\n```\next install mstuttgart.odoo-snippets\n```\n\n### Neovim\n\nThis collection of snippets should work with any snippet engine that supports loading vscode snippets. Like for example:\n\n- [vim-vsnip](https://github.com/hrsh7th/vim-vsnip)\n- [LuaSnip](https://github.com/L3MON4D3/LuaSnip)\n- [coc-snippets](https://github.com/neoclide/coc-snippets)\n\nUse your plugin manager of choice, e.g.\n\n#### With Lazy.nvim\n\n```lua\n{\n  \"mstuttgart/vscode-odoo-snippets\",\n  event = \"InsertEnter\",\n}\n```\n\n\u003e [!WARNING]\n\u003e If you're using LuaSnip make sure to use `require(\"luasnip.loaders.from_vscode\").lazy_load()`, and add\n\u003e `mstuttgart/vscode-odoo-snippets` as a dependency for LuaSnip, otherwise snippets might not\n\u003e be detected. If you don't use `lazy_load()` you might notice a slower startup-time\n\u003e\n   ```lua\n   {\n      \"L3MON4D3/LuaSnip\",\n      dependencies = { \"mstuttgart/vscode-odoo-snippets\" },\n      config = function()\n        require(\"luasnip.loaders.from_vscode\").lazy_load()\n      end,\n   }\n  ```\n\n#### With Packer\n\n```lua\nuse \"rafamadriz/friendly-snippets\"\n```\n\n## Usage\n\nThis extension provide support to following languages (file extensions):\n\n* Python (.py)\n* XML (.xml)\n* CSV (.csv)\n\nUse `tab` to navegate in snippet positions.\n\nBelow is a list of all available snippets.\n\n\u003cdetails\u003e\n\u003csummary\u003ePython snippets\u003c/summary\u003e\n\n| Python Snippet | Description                |\n| -------------- | -------------------------- |\n| `ipdb`         | Import Python ipdb command |\n\n\n| Odoo Snippet | Description                            |\n| ------------ | -------------------------------------- |\n| `oman`       | Create Odoo Manifest                   |\n| `omod`       | Create New Odoo Model                  |\n| `omodi`      | Inherit Existing Odoo Model            |\n| `owiz`       | Create New Odoo wizard                 |\n| `owizi`      | Inherit Existing Odoo wizard           |\n| `omodt`      | Create Test to Odoo Model              |\n| `ofbin`      | Add new field Binary                   |\n| `ofbool`     | Add new field Boolean                  |\n| `ofchar`     | Add new field Char                     |\n| `ofdate`     | Add new field Date                     |\n| `oftime`     | Add new field DateTime                 |\n| `offloat`    | Add new field Float                    |\n| `ofhtml`     | Add new field HTML                     |\n| `ofint`      | Add new field Integer                  |\n| `oftxt`      | Add new field Text                     |\n| `ofsel`      | Add new field Selection                |\n| `ofm2o`      | Add new field Many2one                 |\n| `ofm2m`      | Add new field Many2many                |\n| `ofo2m`      | Add new field One2many                 |\n| `omcreate`   | Add a method create                    |\n| `omwrite`    | Add a method write                     |\n| `omunlink`   | Add a method unlink                    |\n| `omcomp`     | Add a method compute                   |\n| `omchange`   | Add a method onchange                  |\n| `ousercomp`  | Add self.user.company_id snippets      |\n| `oimp`       | Add Odoo import snippets               |\n| `oimpt`      | Add Import to Odoo Tests snippets      |\n| `oimper`     | Add Import to Odoo Exceptions snippets |\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eXML snippets\u003c/summary\u003e\n\n| XML Snippet  | Description                              |\n| ------------ | ---------------------------------------- |\n| `odoo`       | Create Odoo Tag                          |\n| `oform`      | Create Form View                         |\n| `oformi`     | Inherit Existing Form View               |\n| `otree`      | Create Tree View                         |\n| `otreei`     | Inherit Existing Tree View               |\n| `osearch`    | Create Search View                       |\n| `osearchi`   | Inherit Existing Search View             |\n| `ograph`     | Create Graph View                        |\n| `ographi`    | Inherit Existing Graph View              |\n| `opivot`     | Create Pivot View                        |\n| `opivoti`    | Inherit Existing Pivot View              |\n| `okanban`    | Create Kanban View                       |\n| `okanbani`   | Inherit Existing Kanban View             |\n| `ocalendar`  | Create Calendar View                     |\n| `ocalendari` | Inherit Existing Calendar View           |\n| `ogantt`     | Create Gantt View                        |\n| `ogantti`    | Inherit Existing Gantt View              |\n| `oxpath`     | Add the structure of xpath               |\n| `oxpathattr` | Add the structure of xpath to attributes |\n| `oact`       | Create new Action                        |\n| `onote`      | Add notebook and page tags               |\n| `opage`      | Add new page tag                         |\n| `omenur`     | Create New Menu Item in the Upper bar    |\n| `omenuc`     | Create New Menu Item for Categories      |\n| `omenua`     | Create New Menu Item for Actions         |\n| `ocron`      | Add a ir.cron record                     |\n| `obtn`       | Add Odoo button                          |\n| `obtnbox`    | Add Button Box on View                   |\n| `ogroup`     | Add group tag on View                    |\n| `ofield`     | Add Field on View                        |\n| `odata`      | Add data tag on View                     |\n| `ochatter`   | Add chatter tag on View                  |\n| `oaurl`      | Create action.url tag                    |\n| `oaserver`   | Create action.server tag                 |\n| `oaclient`   | Create action.client tag                 |\n\n\u003c!-- \u003csummary\u003eQWeb snippets\u003c/summary\u003e --\u003e\n\n| Qweb Snippet | Description                                    |\n| ------------ | ---------------------------------------------- |\n| `oreport`    | Create report record on View                   |\n| `otemplate`  | Create template tag                            |\n| `otemplatei` | Create template inherit tag                    |\n| `otcall    ` | Add t-call tag on View                         |\n| `otforeach`  | Add t-foreach tag on View                      |\n| `otif`       | Add t-if tag on View                           |\n| `otelif`     | Add t-elif tag on View                         |\n| `otifelse`   | Add t-if-else tag on View                      |\n| `otraw`      | Add t-raw tag on View                          |\n| `otesc`      | Add t-esc tag on View                          |\n| `otset`      | Add t-set tag on View                          |\n| `otfield`    | Add t-field tag on View                        |\n| `otimg`      | Add img tag with `t-att-src` attribute on View |\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eCSV snippets\u003c/summary\u003e\n\n| CSVSnippet          | Description                     |\n| ------------------- | ------------------------------- |\n| `ocolumns`          | Create columns to access groups |\n| `odoo_access_entry` | Create entry to access groups   |\n\n\n\u003c/details\u003e\n\n## Contributing\n\nPlease, see contributing guidelines [here](CONTRIBUTING.md).\n\n## Release Notes\n\nSee [changelog](CHANGELOG.md).\n\n## Credits\n\nThis snippets are based in [odoo-pycharm-templates](https://github.com/mohamedmagdy/odoo-pycharm-templates) project.\n\nCopyright (C) 2018-2024 by Michell Stuttgart\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmstuttgart%2Fodoo-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmstuttgart%2Fodoo-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmstuttgart%2Fodoo-snippets/lists"}