[FIX] odoo_sh: @api.multi doesn't exist in 13.0 (#747)

`api.multi` was removed in 13.0 and is the default behavior. Attempting
to use it in this tutorial will result in a build error.
This commit is contained in:
Raf Geens 2020-09-17 10:07:56 +02:00 committed by GitHub
parent 14c8a1b0e9
commit cbba672929
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -477,7 +477,6 @@ Add
values['name'] = unidecode(values['name'])
return super(my_module, self).create(values)
@api.multi
def write(self, values):
if 'name' in values:
values['name'] = unidecode(values['name'])