Browse Source
The module throws an error in the logs, because in Odoo 16 the re.users model uses batch creation of records: `The model odoo.addons.hide_menu_user.models.res_user is not overriding the create method in batch` Steps to fix: 1. Added correct decorator "@api.model_create_multi" 2. renamed parameter "vals" to "vals_list" to emphasize that it is a list of vals for a list of records to be created 3. Ususally, one would loop over vals_list (for vals in vals_list), but no modifications to vals are done here, to it so it is not necessary in this case.pull/279/head
committed by
GitHub
1 changed files with 3 additions and 3 deletions
Loading…
Reference in new issue