Skip to content

Commit df3bf79

Browse files
committed
Add t-if tag
1 parent 7a0c118 commit df3bf79

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

snippets/xml.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,5 +488,14 @@
488488
"</t>"
489489
],
490490
"description": "Create Odoo t-foreach tag"
491+
},
492+
"odoo_template_if": {
493+
"prefix": "otif",
494+
"body": [
495+
"<t t-if=\"${1:condition}\">",
496+
"\t${0}",
497+
"</t>"
498+
],
499+
"description": "Create Odoo t-if tag"
491500
}
492501
}

0 commit comments

Comments
 (0)