Skip to content

Several improvements #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 29, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions UltiSnips/python.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ def format_class(name):
return name.replace('.', ' ').title().replace(' ', '')
endglobal

snippet pdb
import pdb; pdb.set_trace();
endsnippet

snippet imodel
from odoo import models
${1}
Expand Down Expand Up @@ -34,9 +38,9 @@ endsnippet

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

Expand Down Expand Up @@ -110,7 +114,7 @@ ${3}
endsnippet

snippet ffl "float"
${1:fieldname} = fields.float(digits_compute=dp.get_precision('${2:PrecisionName}')${3})${4}
${1:fieldname} = fields.Float(digits_compute=dp.get_precision('${2:PrecisionName}')${3})${4}
endsnippet

snippet fbo "boolean"
Expand Down