Browse Source

[IMP] make gender selection field values translatable

pull/1/head
houssine 8 years ago
parent
commit
dab4ecc410
  1. 10
      easy_my_coop/models/coop.py

10
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'),

Loading…
Cancel
Save