Hello,
I'm trying to create a new module that inherits hr.holidays so I can add new fields
Here's my code:
class travel_request(models.Model):
_inherit = 'hr.holidays',
_name = 'travel.request'
_columns = {
'flight_class': fields.Selection([('add','Business class'),('add','Economy class')], 'Flight Class', required=True, readonly=True, states={'draft':[('readonly',False)], 'confirm':[('readonly',False)]}, help="Please choose your flight class", select=True),
'city_from': fields.Char('From', readonly=True, states={'draft':[('readonly',False)], 'confirm':[('readonly',False)]}),
'city_to': fields.Char('To', readonly=True, states={'draft':[('readonly',False)], 'confirm':[('readonly',False)]}),
}
and when I try to start the server I got this error
What is wrong with my code?CRITICAL travel-management openerp.modules.module: to_field