@@ -64,12 +64,11 @@ snippet module
64
64
"name": "${1: Module name } ",
65
65
"summary": "${2: Module summary } ",
66
66
"version": "${3: 14.0 } .1.0.0",
67
+ "development_status": "Alpha",
67
68
"category": "${4: Uncategorized } ",
68
69
"website": "${5: www.akretion.com } ",
69
70
"author": "${6: Akretion } ",
70
71
"license": "AGPL-3",
71
- "application": False,
72
- "installable": True,
73
72
"external_dependencies": {
74
73
"python": [],
75
74
"bin": [],
@@ -81,8 +80,6 @@ snippet module
81
80
],
82
81
"demo": [${9}
83
82
],
84
- "qweb": [${10}
85
- ]
86
83
}
87
84
endsnippet
88
85
@@ -289,42 +286,32 @@ ${3:Priority}),
289
286
#
290
287
endsnippet
291
288
292
- snippet func " def search"
293
- def search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False):
294
- """
295
- ${1: Comment }
296
- """
297
- if context is None:
298
- context = {}
299
-
300
- res = super(${2: ClassName } , self).search(cr, uid, args, offset=offset, limit=limit, order=order, context=context, count=count)
301
- ${3}
289
+ snippet fsearch " def search"
290
+ def search(self, args, offset=0, limit=None, order=None, count=False):
291
+ res = super().search(args, offset=offset, limit=limit, order=order, count=count)
302
292
return res
303
293
endsnippet
304
294
305
- snippet func " def read"
306
- def read(self, cr, uid, ids, fields=None, context=None, load='_classic_read'):
307
- if context is None:
308
- context = {}
309
- ${1}
310
- res = super(${2: ClassName } , self).read(cr, uid, ids, fields, context=context)
311
- ${3}
295
+ snippet fread " def read"
296
+ def read(self, fields=None, load='_classic_read'):
297
+ res = super().read(fields=fields, load=load)
312
298
return res
313
299
endsnippet
314
300
315
301
snippet fcreate " def create"
316
- def create(self, vals):
302
+ @api.model_create_multi
303
+ def create(self, list_vals):
317
304
${1}
318
- record = super(${2 : ClassName } , self ).create(vals )
319
- ${3 }
320
- return record
305
+ records = super().create(list_vals )
306
+ ${2 }
307
+ return records
321
308
endsnippet
322
309
323
310
snippet fwrite " def write"
324
311
def write(self, vals):
325
312
${1}
326
- res = super(${2 : ClassName } , self ).write(vals)
327
- ${3 }
313
+ res = super().write(vals)
314
+ ${2 }
328
315
return res
329
316
endsnippet
330
317
0 commit comments