sale_order_template_option.py 289 B

1234567
  1. from odoo import fields, models
  2. class SaleOrderTemplateOption(models.Model):
  3. _inherit = "sale.order.template.option"
  4. product_id = fields.Many2one(domain="[('sale_ok', '=', True), ('detailed_type', 'not in', ['event', 'event_booth']), ('company_id', 'in', [company_id, False])]")