You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
660 B

  1. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  2. from odoo import models, fields, api, _
  3. class ProductTemplate(models.Model):
  4. _inherit = "product.template"
  5. is_combo = fields.Boolean("Is Combo")
  6. combo_price = fields.Float('Combo price', company_dependent=True, digits='Product Price', groups="base.group_user")
  7. combo_category_ids = fields.Many2many('pos.category', string='Pos Categories')
  8. product_combo_ids = fields.One2many('product.combo', 'product_tmpl_id')
  9. class ProductCombo(models.Model):
  10. _name = 'product.combo'
  11. _description = 'Product Combo'
  12. product_tmpl_id = fields.Many2one('product.template')