From dab4ecc41011445994674272ce492dae6dfe413b Mon Sep 17 00:00:00 2001 From: houssine Date: Fri, 2 Jun 2017 13:02:22 +0200 Subject: [PATCH] [IMP] make gender selection field values translatable --- easy_my_coop/models/coop.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/easy_my_coop/models/coop.py b/easy_my_coop/models/coop.py index 333da6e..a45ff53 100644 --- a/easy_my_coop/models/coop.py +++ b/easy_my_coop/models/coop.py @@ -100,13 +100,13 @@ class subscription_request(models.Model): firstname = fields.Char(string='Firstname') lastname = fields.Char(string='Lastname') birthdate = fields.Date(string="Birthdate") - gender = fields.Selection([('male', 'Male'), - ('female', 'Female'), - ('other', 'Other')], string='Gender') + gender = fields.Selection([('male', _('Male')), + ('female', _('Female')), + ('other', _('Other'))], string='Gender') type = fields.Selection([('new','New Cooperator'), ('subscription','Subscription'), - ('increase','Increase number of share')] - ,string='Type', default="new") + ('increase','Increase number of share')], + string='Type', default="new") state = fields.Selection([('draft','Draft'), ('block','Blocked'), ('done','Done'),