[ADD] channel types v1

This commit is contained in:
Dario Lodeiros
2019-04-09 18:01:40 +02:00
parent ecbb659d3d
commit d07780c4ba

View File

@@ -127,11 +127,15 @@ class HotelFolio(models.Model):
('staff', 'Staff'),
('out', 'Out of Service')],
'Type', default=lambda *a: 'normal')
channel_type = fields.Selection([('door', 'Door'),
('mail', 'Mail'),
('phone', 'Phone'),
('call', 'Call Center'),
('web', 'Web')], 'Sales Channel', default='door')
channel_type = fields.Selection([
('door', 'Door'),
('mail', 'Mail'),
('phone', 'Phone'),
('call', 'Call Center'),
('web', 'Web'),
('agency', 'Agencia'),
('operator', 'Tour operador'),
('virtualdoor', 'Virtual Dooe'),], 'Sales Channel', default='door')
user_id = fields.Many2one('res.users', string='Salesperson', index=True,
track_visibility='onchange', default=lambda self: self.env.user)
tour_operator_id = fields.Many2one('res.partner',