File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,8 @@ Below is a list of all available snippets.
72
72
| ` ographi ` | Inherit Existing Graph View |
73
73
| ` opivot ` | Create Pivot View |
74
74
| ` opivoti ` | Inherit Existing Pivot View |
75
+ | ` okanban ` | Create Kanban View |
76
+ | ` okanbani ` | Inherit Existing Kanban View |
75
77
| ` oxpath ` | Add the structure of xpath |
76
78
| ` oxpathattr ` | Add the structure of xpath to attributes |
77
79
| ` oact ` | Create new Action |
Original file line number Diff line number Diff line change 168
168
],
169
169
"description" : " Inherit Existing Pivot View"
170
170
},
171
+ "odoo_kanban" : {
172
+ "prefix" : " okanban" ,
173
+ "body" : [
174
+ " <!-- ${1:model.name} kanban view -->" ,
175
+ " <record id=\" ${2:model_name}_view_kanban\" model=\" ir.ui.view\" >" ,
176
+ " \t <field name=\" name\" >${1:first.name}.view.kanban</field>" ,
177
+ " \t <field name=\" model\" >${1:first.name}</field>" ,
178
+ " \t <field name=\" arch\" type=\" xml\" >" ,
179
+ " \t\t <kanban string=\" ${3:Kanban Description}\" >" ,
180
+ " \t\t\t <!-- Add your fields here -->" ,
181
+ " \t\t\t $0" ,
182
+ " \t\t </kanban>" ,
183
+ " \t </field>" ,
184
+ " </record>"
185
+ ],
186
+ "description" : " Create Kanban View"
187
+ },
188
+ "odoo_kanban_inherit" : {
189
+ "prefix" : " okanbani" ,
190
+ "body" : [
191
+ " <!-- ${1:model.name} inherit kanban view -->" ,
192
+ " <record id=\" ${2:view_id}\" model=\" ir.ui.view\" >" ,
193
+ " \t <field name=\" name\" >${1:model.name}.inherit.view.kanban</field>" ,
194
+ " \t <field name=\" model\" >${1:model.name}</field>" ,
195
+ " \t <field name=\" inherit_id\" ref=\" ${3:base_module}.${2:view_id}\" />" ,
196
+ " \t <field name=\" arch\" type=\" xml\" >" ,
197
+ " \t\t <!-- Add you xpath here -->" ,
198
+ " \t\t $0" ,
199
+ " \t </field>" ,
200
+ " </record>"
201
+ ],
202
+ "description" : " Inherit Existing Kanban View"
203
+ },
171
204
"odoo_xpath" : {
172
205
"prefix" : " oxpath" ,
173
206
"body" : [
You can’t perform that action at this time.
0 commit comments