Skip to content

Commit

Permalink
[UPD] update field integer
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienbeau committed Jul 7, 2017
1 parent 28ac684 commit 9c88cce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Stephane Wirtel <[email protected]>
Sebastien LANGE <[email protected]>
Christophe CHAUVET <[email protected]>
Sébastien BEAU <[email protected]>
5 changes: 3 additions & 2 deletions UltiSnips/python.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ ${3}
endsnippet

snippet fint "integer"
'${1:fieldname}': fields.integer('${2:Label}', ${4}help='${3:Help note}'),${5}
${1:fieldname} = fields.Integer(${2})
${3}
endsnippet

snippet ffl "float"
Expand Down Expand Up @@ -397,7 +398,7 @@ def name_get(self, cr, uid, ids, context=None):
if not len(ids):
return []
#TODO : search on name field or _res_name fields
#and make a result [(id, name), (id, name), ...]
#and make a result [(id, name), (id, name), ...]
reads = self.read(cr, uid, ids, [self._rec_name], context, load='_classic_write')]
res = []
${2}
Expand Down

0 comments on commit 9c88cce

Please sign in to comment.