1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/sale_planning/models/planning_role.py
2024-12-10 09:04:09 +07:00

10 lines
351 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class PlanningRole(models.Model):
_inherit = 'planning.role'
product_ids = fields.One2many('product.template', 'planning_role_id', string='Services', domain=[('type', '=', 'service'), ('sale_ok', '=', True)])