From 4a9ef70ff37a948bedfb6e13cf88475021cf411a Mon Sep 17 00:00:00 2001 From: houssine Date: Fri, 12 Apr 2019 14:10:16 +0200 Subject: [PATCH] [FIX] fix required field --- easy_my_coop/models/coop.py | 1 + 1 file changed, 1 insertion(+) diff --git a/easy_my_coop/models/coop.py b/easy_my_coop/models/coop.py index 0f27ff3..46b46e6 100644 --- a/easy_my_coop/models/coop.py +++ b/easy_my_coop/models/coop.py @@ -69,6 +69,7 @@ class subscription_request(models.Model): @api.model def create_comp_sub_req(self, vals): + vals["name"] = vals['company_name'] if not vals.get('partner_id'): cooperator = self.env['res.partner'].get_cooperator_from_crn(vals.get('company_register_number')) if cooperator: