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: