pricelist.py 700 B

123456789101112131415
  1. # -*- coding: utf-8 -*-
  2. ##############################################################################
  3. # For copyright and license notices, see __openerp__.py file in module root
  4. # directory
  5. ##############################################################################
  6. from openerp import models,fields,api
  7. class product_pricelist(models.Model):
  8. _name = 'product.pricelist'
  9. _inherit = 'product.pricelist'
  10. user_ids = fields.Many2many('res.users', 'pricelist_security_pricelist_users', 'pricelist_id',
  11. 'user_id', string='Restricted to Users', help='If choose some users, then this Pricelist and the information related to it will be only visible for those users.')