[MERGE] forward port branch 10.0 up to ab60d773eb
This commit is contained in:
@@ -68,9 +68,8 @@ class HrTimesheetSheet(models.Model):
|
||||
'\n* The \'Waiting Approval\' status is used to confirm the timesheet by user. '
|
||||
'\n* The \'Approved\' status is used when the users timesheet is accepted by his/her senior.')
|
||||
account_ids = fields.One2many('hr_timesheet_sheet.sheet.account', 'sheet_id', string='Analytic accounts', readonly=True)
|
||||
company_id = fields.Many2one('res.company', string='Company')
|
||||
department_id = fields.Many2one('hr.department', string='Department',
|
||||
default=lambda self: self.env['res.company']._company_default_get())
|
||||
company_id = fields.Many2one('res.company', string='Company', default=lambda self: self.env['res.company']._company_default_get())
|
||||
department_id = fields.Many2one('hr.department', string='Department')
|
||||
|
||||
@api.constrains('date_to', 'date_from', 'employee_id')
|
||||
def _check_sheet_date(self, forced_user_id=False):
|
||||
|
||||
@@ -49,7 +49,7 @@ class Channel(models.Model):
|
||||
('channel', 'Channel')],
|
||||
'Channel Type', default='channel')
|
||||
description = fields.Text('Description')
|
||||
uuid = fields.Char('UUID', size=50, index=True, default=lambda self: '%s' % uuid.uuid4())
|
||||
uuid = fields.Char('UUID', size=50, index=True, default=lambda self: '%s' % uuid.uuid4(), copy=False)
|
||||
email_send = fields.Boolean('Send messages by email', default=False)
|
||||
# multi users channel
|
||||
channel_last_seen_partner_ids = fields.One2many('mail.channel.partner', 'channel_id', string='Last Seen')
|
||||
|
||||
@@ -20,3 +20,4 @@ Sergio Valdés sergiov@merchise.org
|
||||
Medardo Rodríguez med@merchise.org https://github.com/med-merchise
|
||||
Abel Firvida firvida@merchise.org
|
||||
Abel Firvida abel@merchise.org
|
||||
Mónica Díaz Pena monicadp@merchise.org https://github.com/mdpena
|
||||
|
||||
Reference in New Issue
Block a user