mirror of
https://github.com/odoo/documentation.git
synced 2026-01-02 17:59:20 +07:00
[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:
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user