Created
June 4, 2017 04:24
-
-
Save FingerLiu/a086066810056fd000f0b5db49574cd1 to your computer and use it in GitHub Desktop.
odoo_snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
snippet xml | |
<?xml version="1.0" encoding="UTF-8"?> | |
# tag | |
snippet t | |
<${1:}${2}> | |
</$1> | |
# inline tag | |
snippet ti | |
<${1}${2}>${3}</$1> | |
snippet tt | |
<${1}${2}/> | |
snippet c | |
<!-- ${1:} --> | |
snippet k | |
${1:}="${2}"${3} | |
snippet record | |
<record id="${1:id}" model="${2:ir.ui.view}"> | |
<field name="name">${3:name}</field> | |
<field name="model">${4:model}</field> | |
<field name="arch" type="xml"> | |
${5} | |
</field> | |
</record> | |
snippet form | |
<form> | |
<header> | |
<!-- Buttons go here--> | |
${1} | |
</header> | |
<sheet> | |
<!-- Content goes here: --> | |
${2} | |
</sheet> | |
</form> | |
snippet btn | |
<button name="${1:name}" type="${2:type}" string="${3:string}" ${4}/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment