From 172b7b16805a5fb7432695b501e8e97633cb1f80 Mon Sep 17 00:00:00 2001 From: houssine Date: Fri, 12 Apr 2019 11:24:44 +0200 Subject: [PATCH] [IMP] make quantity default value to 1 --- 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 a2cdd40..0f27ff3 100644 --- a/easy_my_coop/models/coop.py +++ b/easy_my_coop/models/coop.py @@ -204,6 +204,7 @@ class subscription_request(models.Model): ordered_parts = fields.Integer(string='Number of Share', required=True, readonly=True, + default=1, states={'draft': [('readonly', False)]}) address = fields.Char(string='Address', required=True,