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 @@ -76,6 +76,8 @@ Below is a list of all available snippets.
76
76
| ` okanbani ` | Inherit Existing Kanban View |
77
77
| ` ocalendar ` | Create Calendar View |
78
78
| ` ocalendari ` | Inherit Existing Calendar View |
79
+ | ` ogantt ` | Create Gantt View |
80
+ | ` ogantti ` | Inherit Existing Gantt View |
79
81
| ` oxpath ` | Add the structure of xpath |
80
82
| ` oxpathattr ` | Add the structure of xpath to attributes |
81
83
| ` oact ` | Create new Action |
Original file line number Diff line number Diff line change 234
234
],
235
235
"description" : " Inherit Existing Calendar View"
236
236
},
237
+ "odoo_gantt" : {
238
+ "prefix" : " ogantt" ,
239
+ "body" : [
240
+ " <!-- ${1:model.name} gantt view -->" ,
241
+ " <record id=\" ${2:model_name}_view_gantt\" model=\" ir.ui.view\" >" ,
242
+ " \t <field name=\" name\" >${1:first.name}.view.gantt</field>" ,
243
+ " \t <field name=\" model\" >${1:first.name}</field>" ,
244
+ " \t <field name=\" arch\" type=\" xml\" >" ,
245
+ " \t\t <gantt string=\" ${3:Gantt Description}\" date_start=\" {4}\" >" ,
246
+ " \t\t\t <!-- Add your fields here -->" ,
247
+ " \t\t\t $0" ,
248
+ " \t\t </gantt>" ,
249
+ " \t </field>" ,
250
+ " </record>"
251
+ ],
252
+ "description" : " Create Gantt View"
253
+ },
254
+ "odoo_gantt_inherit" : {
255
+ "prefix" : " ogantti" ,
256
+ "body" : [
257
+ " <!-- ${1:model.name} inherit gantt view -->" ,
258
+ " <record id=\" ${2:view_id}\" model=\" ir.ui.view\" >" ,
259
+ " \t <field name=\" name\" >${1:model.name}.inherit.view.gantt</field>" ,
260
+ " \t <field name=\" model\" >${1:model.name}</field>" ,
261
+ " \t <field name=\" inherit_id\" ref=\" ${3:base_module}.${2:view_id}\" />" ,
262
+ " \t <field name=\" arch\" type=\" xml\" >" ,
263
+ " \t\t <!-- Add you xpath here -->" ,
264
+ " \t\t $0" ,
265
+ " \t </field>" ,
266
+ " </record>"
267
+ ],
268
+ "description" : " Inherit Existing Gantt View"
269
+ },
237
270
"odoo_xpath" : {
238
271
"prefix" : " oxpath" ,
239
272
"body" : [
You can’t perform that action at this time.
0 commit comments