product.py 1010 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # coding: utf-8
  2. # © 2015 David BEAL @ Akretion
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  4. from openerp import api, fields, models
  5. # class ProductCurve(models.Model):
  6. # _name = 'product.curve'
  7. #
  8. # product_id = fields.Many2one(
  9. # 'product.product',
  10. # string='Variant',
  11. # ondelete='restrict'
  12. # )
  13. # product_atributte_id = fields.Many2one(
  14. # 'product.attribute',
  15. # string='attribute',
  16. # ondelete='restrict'
  17. # )
  18. # product_tmpl_id = fields.Many2one(
  19. # 'product.template',
  20. # string='Variant',
  21. # ondelete='restrict'
  22. # )
  23. # product_quantity = fields.Integer(
  24. # string='Quantity'
  25. # )
  26. class ProductTemplate(models.Model):
  27. _inherit = 'product.template'
  28. # variant_item_ids = fields.One2many(
  29. # 'product.curve',
  30. # 'product_tmpl_id',
  31. # string='Variantes',
  32. # )
  33. curva = fields.Char("Curva")
  34. product_website_sale_type = fields.Boolean()