Hi everyone,i'm working with Openerp 7 and i wanna add a new menuitem in the inherit module fleet management and i have this error in the class transport_point _inherit='fleet.vehicle' ^ IndentationError: unexpected indent
myfile.py
class fleet_vehicle(osv.osv):
_name = 'fleet.vehicle'
_inherit='fleet.vehicle'
_columns = {
'type':fields.selection([('ci','C.I'), ('fourgon','Fourgon'),
('fourgonnette','Fourgonnette'),('minibus','Mini-bus'),
('pickup','Pick-up'),('poidslourds','Poids Lourds'),
('vfonction','V.fonction')],'Type'),
'chauffeur': fields.many2one('hr.employee', 'Chauffeur',required=True),
'name': fields.char('Nom du point', size=50, required=True),
'amount': fields.float('Montant'),
}
fleet_vehicle()
class transport_point(osv.osv):
_name = 'transport.point'
_inherit='fleet.vehicle'
_columns = {
'name': fields.char('Nom du point', size=50, required=True),
'amount': fields.float('Montant'),
}
_defaults={
'amount': 0,
}
add
transport_point()
at the end of class transport_point.HI I add transport_point() at the end of class transport_point and i still have the same error;any other idea please?