product.py 549 B

12345678910111213141516
  1. # -*- coding: utf-8 -*-
  2. from openerp import models, fields, api
  3. import logging
  4. class Product(models.Model):
  5. _inherit = 'product.template'
  6. country_id = fields.Many2one('res.country', string='Procedencia')
  7. height = fields.Float(string="Altura")
  8. length = fields.Float(string="Largo")
  9. width = fields.Float(string="Ancho")
  10. last_purchase_date = fields.Date(string="Última compra")
  11. price_change = fields.Selection([
  12. ('purchase', 'Compra'),
  13. ('import', 'Importación')],
  14. string='Actualizar costo con')