Skip to content

Commit 22d9e2f

Browse files
Merge pull request #3 from PierrickBrun/pierrick-improvements
Several improvements
2 parents dd2e4b0 + 973d2db commit 22d9e2f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

UltiSnips/python.snippets

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ def format_class(name):
66
return name.replace('.', ' ').title().replace(' ', '')
77
endglobal
88

9+
snippet pdb
10+
import pdb; pdb.set_trace();
11+
endsnippet
12+
913
snippet imodel
1014
from odoo import models
1115
${1}
@@ -34,9 +38,9 @@ endsnippet
3438

3539
snippet start
3640
# -*- coding: utf-8 -*-
37-
# Copyright 2019 Akretion (http://www.akretion.com).
38-
# @author Sébastien BEAU <sebastien.beau@akretion.com>
39-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
41+
# Copyright `date +%Y` Akretion (https://www.akretion.com).
42+
# @author `git config user.name` <`git config user.email`>
43+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
4044
${1}
4145
endsnippet
4246

@@ -110,7 +114,7 @@ ${3}
110114
endsnippet
111115

112116
snippet ffl "float"
113-
${1:fieldname} = fields.float(digits_compute=dp.get_precision('${2:PrecisionName}')${3})${4}
117+
${1:fieldname} = fields.Float(digits_compute=dp.get_precision('${2:PrecisionName}')${3})${4}
114118
endsnippet
115119

116120
snippet fbo "boolean"

0 commit comments

Comments
 (0)