From ed8f2bbb87adf87dba325a89008dedd93ca03e43 Mon Sep 17 00:00:00 2001 From: yassine-rhimi <81622165+yassine-rhimi@users.noreply.github.com> Date: Mon, 13 Nov 2023 16:09:05 +0100 Subject: [PATCH] Update crm_claim.py in odoo v 16 we used @api.model_create_multi Not use api-model in def create please merge it --- crm_claim/models/crm_claim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crm_claim/models/crm_claim.py b/crm_claim/models/crm_claim.py index 82bdeebcfe7..1e97bb4a88f 100644 --- a/crm_claim/models/crm_claim.py +++ b/crm_claim/models/crm_claim.py @@ -143,7 +143,7 @@ def onchange_categ_id(self): if self.stage_id: self.team_id = self.categ_id.team_id - @api.model + @api.model_create_multi def create(self, values): ctx = self.env.context.copy() if values.get("team_id") and not ctx.get("default_team_id"):