123456789101112131415161718192021222324252627282930313233343536373839 |
- # coding: utf-8
- # © 2015 David BEAL @ Akretion
- # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
- from openerp import api, fields, models
- # class ProductCurve(models.Model):
- # _name = 'product.curve'
- #
- # product_id = fields.Many2one(
- # 'product.product',
- # string='Variant',
- # ondelete='restrict'
- # )
- # product_atributte_id = fields.Many2one(
- # 'product.attribute',
- # string='attribute',
- # ondelete='restrict'
- # )
- # product_tmpl_id = fields.Many2one(
- # 'product.template',
- # string='Variant',
- # ondelete='restrict'
- # )
- # product_quantity = fields.Integer(
- # string='Quantity'
- # )
- class ProductTemplate(models.Model):
- _inherit = 'product.template'
- # variant_item_ids = fields.One2many(
- # 'product.curve',
- # 'product_tmpl_id',
- # string='Variantes',
- # )
- curva = fields.Char("Curva")
- product_website_sale_type = fields.Boolean()
|