product_service.py 1.1 KB

123456789101112131415161718192021222324252627
  1. # -*- encoding: utf-8 -*-
  2. from openerp import models, fields, api, tools
  3. from openerp.exceptions import ValidationError
  4. class ProductServiceCarWorkShop(models.Model):
  5. _inherit = 'product.service'
  6. year=fields.Integer(string='Año')
  7. color=fields.Char(string='Color')
  8. policy = fields.Boolean(string="Policy")
  9. policy_number =fields.Char(string='Número de chapa')
  10. agent_id = fields.Many2one(
  11. 'res.partner',
  12. string='Agente',
  13. ondelete='restrict'
  14. )
  15. secure_id = fields.Many2one(
  16. 'res.partner',
  17. string='Aseguradora',
  18. ondelete='restrict'
  19. )
  20. odometer = fields.Float(string='Odometro')
  21. car_value = fields.Float(string='Valor del vehiculo')
  22. transmission = fields.Selection([('manual','Manual'), ('automatic','Automatico')], string="Tipo de transmision")
  23. fuel_type = fields.Selection([('gasoline','Gasolina'), ('diesel','Diesel'), ('electric','Electrico'), ('hybrid','Hibrido')], string="Tipo de combustible")
  24. seats = fields.Integer(string='Nro. de asientos')
  25. doors = fields.Integer(string='Nro. de puertas')