mrp_user_product_restriction/models/res_users.py
2026-01-23 15:33:44 +07:00

14 lines
398 B
Python

from odoo import models, fields
class ResUsers(models.Model):
_inherit = 'res.users'
allowed_manufacture_product_ids = fields.Many2many(
'product.product',
'res_users_product_mrp_rel',
'user_id',
'product_id',
string="Allowed Products Manufacture",
help="Allowed products for Manufacturing Orders. If empty, no products are allowed."
)