12
12
13
13
<p align =" center " >
14
14
<a href =" https://marketplace.visualstudio.com/items?itemName=mstuttgart.odoo-snippets " >
15
- <img src="https://vsmarketplacebadge.apphb.com/version-short/mstuttgart.odoo-snippets.svg?style=flat-square&color=875A7B" alt="Version">
15
+ <img src="https://vsmarketplacebadge.apphb.com/version-short/mstuttgart.odoo-snippets.svg?style=flat-square&color=875A7B" alt="Version">
16
16
</a >
17
17
<a href =" https://marketplace.visualstudio.com/items?itemName=mstuttgart.odoo-snippets " >
18
- <img src="https://vsmarketplacebadge.apphb.com/installs/mstuttgart.odoo-snippets.svg?style=flat-square&color=875A7B" alt="Installs">
18
+ <img alt="Visual Studio Marketplace Installs" src="https://img.shields.io/visual-studio-marketplace/i/mstuttgart.odoo-snippets?color=875A7B&style=flat-square">
19
+ </a >
20
+ <a href =" https://marketplace.visualstudio.com/items?itemName=mstuttgart.odoo-snippets " >
21
+ <img alt="Visual Studio Marketplace Downloads" src="https://img.shields.io/visual-studio-marketplace/d/mstuttgart.odoo-snippets?color=875A7B&style=flat-square">
19
22
</a >
20
23
<a href =" https://marketplace.visualstudio.com/items?itemName=mstuttgart.odoo-snippets " >
21
24
<img src="https://vsmarketplacebadge.apphb.com/rating/mstuttgart.odoo-snippets.svg?style=flat-square&color=875A7B" alt="Ratings">
@@ -61,67 +64,87 @@ This extension provide support to following languages (file extensions):
61
64
62
65
Below is a list of all available snippets.
63
66
64
- ### Python Snippets
65
-
66
- | Snippet | Description |
67
- | ---------- | --------------------------- |
68
- | ` oman ` | Create Odoo Manifest |
69
- | ` omod ` | Create New Odoo Model |
70
- | ` omodi ` | Inherit Existing Odoo Model |
71
- | ` omodt ` | Create Test to Odoo Model |
72
- | ` ofbin ` | Add new field Binary |
73
- | ` ofbool ` | Add new field Boolean |
74
- | ` ofchar ` | Add new field Char |
75
- | ` ofdate ` | Add new field Date |
76
- | ` oftime ` | Add new field DateTime |
77
- | ` offloat ` | Add new field Float |
78
- | ` ofhtml ` | Add new field HTML |
79
- | ` ofint ` | Add new field Integer |
80
- | ` oftxt ` | Add new field Text |
81
- | ` ofsel ` | Add new field Selection |
82
- | ` ofm2o ` | Add new field Many2one |
83
- | ` ofm2m ` | Add new field Many2many |
84
- | ` ofo2m ` | Add new field One2many |
85
- | ` omcreate ` | Add a method create |
86
- | ` omwrite ` | Add a method write |
87
- | ` omunlink ` | Add a method unlink |
88
- | ` omcomp ` | Add a method compute |
89
- | ` omchange ` | Add a method onchange |
90
-
91
- ### XML Snippets
92
-
93
- | Snippet | Description |
94
- | ------------ | ---------------------------------------- |
95
- | ` oform ` | Create Form View |
96
- | ` oformi ` | Inherit Existing Form View |
97
- | ` otree ` | Create Tree View |
98
- | ` otreei ` | Inherit Existing Tree View |
99
- | ` osearch ` | Create Search View |
100
- | ` osearchi ` | Inherit Existing Search View |
101
- | ` ograph ` | Create Graph View |
102
- | ` ographi ` | Inherit Existing Graph View |
103
- | ` opivot ` | Create Pivot View |
104
- | ` opivoti ` | Inherit Existing Pivot View |
105
- | ` okanban ` | Create Kanban View |
106
- | ` okanbani ` | Inherit Existing Kanban View |
107
- | ` ocalendar ` | Create Calendar View |
108
- | ` ocalendari ` | Inherit Existing Calendar View |
109
- | ` ogantt ` | Create Gantt View |
110
- | ` ogantti ` | Inherit Existing Gantt View |
111
- | ` oxpath ` | Add the structure of xpath |
112
- | ` oxpathattr ` | Add the structure of xpath to attributes |
113
- | ` oact ` | Create new Action |
114
- | ` onote ` | Add notebook and page tags |
115
- | ` opage ` | Add new page tag |
116
- | ` omenur ` | Create New Menu Item in the Upper bar |
117
- | ` omenuc ` | Create New Menu Item for Categories |
118
- | ` omenua ` | Create New Menu Item for Actions |
119
- | ` ocron ` | Add a ir.cron record (11.0 version) |
120
- | ` obtn ` | Add Odoo button |
121
- | ` obtnbox ` | Add Button Box on View |
122
- | ` ofield ` | Add Field on View |
123
- | ` odata ` | Add data tag on View |
124
- | ` ostatusbar ` | Create Header with Status Bar |
67
+ <details >
68
+ <summary >Python snippets</summary >
69
+
70
+ | Snippet | Description |
71
+ | ---------- | ---------------------------- |
72
+ | ` oman ` | Create Odoo Manifest |
73
+ | ` omod ` | Create New Odoo Model |
74
+ | ` omodi ` | Inherit Existing Odoo Model |
75
+ | ` owiz ` | Create New Odoo wizard |
76
+ | ` owizi ` | Inherit Existing Odoo wizard |
77
+ | ` omodt ` | Create Test to Odoo Model |
78
+ | ` ofbin ` | Add new field Binary |
79
+ | ` ofbool ` | Add new field Boolean |
80
+ | ` ofchar ` | Add new field Char |
81
+ | ` ofdate ` | Add new field Date |
82
+ | ` oftime ` | Add new field DateTime |
83
+ | ` offloat ` | Add new field Float |
84
+ | ` ofhtml ` | Add new field HTML |
85
+ | ` ofint ` | Add new field Integer |
86
+ | ` oftxt ` | Add new field Text |
87
+ | ` ofsel ` | Add new field Selection |
88
+ | ` ofm2o ` | Add new field Many2one |
89
+ | ` ofm2m ` | Add new field Many2many |
90
+ | ` ofo2m ` | Add new field One2many |
91
+ | ` omcreate ` | Add a method create |
92
+ | ` omwrite ` | Add a method write |
93
+ | ` omunlink ` | Add a method unlink |
94
+ | ` omcomp ` | Add a method compute |
95
+ | ` omchange ` | Add a method onchange |
96
+
97
+ </details >
98
+
99
+ <details >
100
+ <summary >XML and Report snippets</summary >
101
+
102
+ | Snippet | Description |
103
+ | ------------ | ---------------------------------------------- |
104
+ | ` odoo ` | Create Odoo Tag |
105
+ | ` oform ` | Create Form View |
106
+ | ` oformi ` | Inherit Existing Form View |
107
+ | ` otree ` | Create Tree View |
108
+ | ` otreei ` | Inherit Existing Tree View |
109
+ | ` osearch ` | Create Search View |
110
+ | ` osearchi ` | Inherit Existing Search View |
111
+ | ` ograph ` | Create Graph View |
112
+ | ` ographi ` | Inherit Existing Graph View |
113
+ | ` opivot ` | Create Pivot View |
114
+ | ` opivoti ` | Inherit Existing Pivot View |
115
+ | ` okanban ` | Create Kanban View |
116
+ | ` okanbani ` | Inherit Existing Kanban View |
117
+ | ` ocalendar ` | Create Calendar View |
118
+ | ` ocalendari ` | Inherit Existing Calendar View |
119
+ | ` ogantt ` | Create Gantt View |
120
+ | ` ogantti ` | Inherit Existing Gantt View |
121
+ | ` oxpath ` | Add the structure of xpath |
122
+ | ` oxpathattr ` | Add the structure of xpath to attributes |
123
+ | ` oact ` | Create new Action |
124
+ | ` onote ` | Add notebook and page tags |
125
+ | ` opage ` | Add new page tag |
126
+ | ` omenur ` | Create New Menu Item in the Upper bar |
127
+ | ` omenuc ` | Create New Menu Item for Categories |
128
+ | ` omenua ` | Create New Menu Item for Actions |
129
+ | ` ocron ` | Add a ir.cron record (11.0 version) |
130
+ | ` obtn ` | Add Odoo button |
131
+ | ` obtnbox ` | Add Button Box on View |
132
+ | ` ogroup ` | Add group tag on View |
133
+ | ` ofield ` | Add Field on View |
134
+ | ` odata ` | Add data tag on View |
135
+ | ` oreport ` | Create report record on View |
136
+ | ` otemplate ` | Create template tag |
137
+ | ` otemplatei ` | Create template inherit tag |
138
+ | ` otcall ` | Add t-call tag on View |
139
+ | ` otforeach ` | Add t-foreach tag on View |
140
+ | ` otif ` | Add t-if tag on View |
141
+ | ` otraw ` | Add t-raw tag on View |
142
+ | ` otesc ` | Add t-esc tag on View |
143
+ | ` otset ` | Add t-set tag on View |
144
+ | ` otfield ` | Add t-field tag on View |
145
+ | ` otimg ` | Add img tag with ` t-att-src ` attribute on View |
146
+
147
+ </details >
125
148
126
149
## Contributing
127
150
@@ -135,4 +158,4 @@ See [changelog](CHANGELOG.md).
135
158
136
159
This snippets are based in [ odoo-pycharm-templates] ( https://github.com/mohamedmagdy/odoo-pycharm-templates ) project.
137
160
138
- Copyright (C) 2018-2020 by Michell Stuttgart
161
+ Copyright (C) 2018-2021 by Michell Stuttgart
0 commit comments