Browse Source

S003 et S010 : noms en français dans l'interface graphique

pull/5/head
EliseDup 9 years ago
parent
commit
24c637f37f
  1. 8
      beesdoo_base/models/membercard.py
  2. 8
      beesdoo_base/models/partner.py

8
beesdoo_base/models/membercard.py

@ -25,11 +25,11 @@ class MemberCard(models.Model):
_order = 'activation_date desc' _order = 'activation_date desc'
valid = fields.Boolean(default=True, string="Active") valid = fields.Boolean(default=True, string="Active")
barcode = fields.Char('Barcode', oldname='ean13', default=_compute_bar_code)
barcode = fields.Char("Code barre", oldname='ean13', default=_compute_bar_code)
partner_id = fields.Many2one('res.partner') #, default=_get_current_client) partner_id = fields.Many2one('res.partner') #, default=_get_current_client)
responsible_id = fields.Many2one('res.users', default=_get_current_user)
activation_date = fields.Date(default=fields.Date.today, readonly=True)
end_date = fields.Date(readonly=True)
responsible_id = fields.Many2one('res.users', default=_get_current_user, string="Responsable")
activation_date = fields.Date(default=fields.Date.today, readonly=True, string="Date de création")
end_date = fields.Date(readonly=True, string="Date d'expiration")
comment = fields.Char("Raison", required=True) comment = fields.Char("Raison", required=True)
# A transient model for the creation of a new card. The user can only define the raison why # A transient model for the creation of a new card. The user can only define the raison why

8
beesdoo_base/models/partner.py

@ -10,15 +10,15 @@ class Partner(models.Model):
first_name = fields.Char('First Name') first_name = fields.Char('First Name')
last_name = fields.Char('Last Name', required=True) last_name = fields.Char('Last Name', required=True)
eater = fields.Selection([('eater', 'Eater'), ('worker_eater', 'Worker and Eater')], string="Eater/Worker")
eater = fields.Selection([('eater', 'Mangeur'), ('worker_eater', 'Mangeur et Travailleur')], string="Mangeur/Travailleur")
child_eater_ids = fields.One2many("res.partner", "parent_eater_id", domain=[('customer', '=', True), child_eater_ids = fields.One2many("res.partner", "parent_eater_id", domain=[('customer', '=', True),
('eater', '=', 'eater')]) ('eater', '=', 'eater')])
parent_eater_id = fields.Many2one("res.partner", string="Parent Worker", readonly=True)
parent_eater_id = fields.Many2one("res.partner", string="Parent Travailleur", readonly=True)
barcode = fields.Char(compute="_get_bar_code", string='Bar Code', store=True)
parent_barcode = fields.Char(compute="_get_bar_code", string='Parent Bar Code', store=True)
barcode = fields.Char(compute="_get_bar_code", string='Code Barre', store=True)
parent_barcode = fields.Char(compute="_get_bar_code", string='Code Barre du Parent', store=True)
member_card_ids = fields.One2many('member.card', 'partner_id') member_card_ids = fields.One2many('member.card', 'partner_id')
@api.onchange('first_name', 'last_name') @api.onchange('first_name', 'last_name')

Loading…
Cancel
Save