File tree Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,8 @@ Below is a list of all available snippets.
70
70
| ` osearchi ` | Inherit Existing Search View |
71
71
| ` ograph ` | Create Graph View |
72
72
| ` ographi ` | Inherit Existing Graph View |
73
+ | ` opivot ` | Create Pivot View |
74
+ | ` opivoti ` | Inherit Existing Pivot View |
73
75
| ` oxpath ` | Add the structure of xpath |
74
76
| ` oxpathattr ` | Add the structure of xpath to attributes |
75
77
| ` oact ` | Create new Action |
Original file line number Diff line number Diff line change 133
133
" \t </field>" ,
134
134
" </record>"
135
135
],
136
- "description" : " Inherit Existing graph View"
136
+ "description" : " Inherit Existing Graph View"
137
+ },
138
+ "odoo_pivot" : {
139
+ "prefix" : " opivot" ,
140
+ "body" : [
141
+ " <!-- ${1:model.name} pivot view -->" ,
142
+ " <record id=\" ${2:model_name}_view_pivot\" model=\" ir.ui.view\" >" ,
143
+ " \t <field name=\" name\" >${1:first.name}.view.pivot</field>" ,
144
+ " \t <field name=\" model\" >${1:first.name}</field>" ,
145
+ " \t <field name=\" arch\" type=\" xml\" >" ,
146
+ " \t\t <pivot string=\" ${3:Pivot Description}\" >" ,
147
+ " \t\t\t <!-- Add your fields here -->" ,
148
+ " \t\t\t $0" ,
149
+ " \t\t </pivot>" ,
150
+ " \t </field>" ,
151
+ " </record>"
152
+ ],
153
+ "description" : " Create Pivot View"
154
+ },
155
+ "odoo_pivot_inherit" : {
156
+ "prefix" : " opivoti" ,
157
+ "body" : [
158
+ " <!-- ${1:model.name} inherit pivot view -->" ,
159
+ " <record id=\" ${2:view_id}\" model=\" ir.ui.view\" >" ,
160
+ " \t <field name=\" name\" >${1:model.name}.inherit.view.pivot</field>" ,
161
+ " \t <field name=\" model\" >${1:model.name}</field>" ,
162
+ " \t <field name=\" inherit_id\" ref=\" ${3:base_module}.${2:view_id}\" />" ,
163
+ " \t <field name=\" arch\" type=\" xml\" >" ,
164
+ " \t\t <!-- Add you xpath here -->" ,
165
+ " \t\t $0" ,
166
+ " \t </field>" ,
167
+ " </record>"
168
+ ],
169
+ "description" : " Inherit Existing Pivot View"
137
170
},
138
171
"odoo_xpath" : {
139
172
"prefix" : " oxpath" ,
You can’t perform that action at this time.
0 commit comments