product.py 897 B

12345678910111213141516171819
  1. # -*- coding: utf-8 -*-
  2. # @authors: Alexander Ezquevo <alexander@acysos.com>
  3. # Copyright (C) 2015 Acysos S.L.
  4. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  5. from openerp import models, fields
  6. class Template(models.Model):
  7. _inherit = 'product.template'
  8. farrowing_price = fields.Float(string='Farrowing Price', digits=(16, 4),
  9. help=('Unitary cost for farrowing events.'
  10. 'It\'s only used when the product is'
  11. 'a group product of a farm specie.'))
  12. wearing_price = fields.Float(string='Weaning Price', digits=(16, 4),
  13. help=('Unitary cost for weaning events.'
  14. 'It\'s only used when the product is a'
  15. 'group product of a farm specie.'))