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
848 B

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. # -*- coding: utf-8 -*-
  2. # Copyright (C) 2014 GRAP (http://www.grap.coop)
  3. # Copyright (C) 2016-Today GRAP (http://www.lalouve.net)
  4. # @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
  5. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  6. from openerp import models, fields
  7. class barcode_rule(models.Model):
  8. _inherit = 'barcode.rule'
  9. is_product_available = fields.Boolean(
  10. string='Available for Products', help="If checked, users with"
  11. " specific access right will have the possibility to generate"
  12. " barcodes with this pattern for the products.")
  13. is_partner_available = fields.Boolean(
  14. string='Available for Partners', help="If checked, users with"
  15. " specific access right will have the possibility to generate"
  16. " barcodes with this pattern for the partners.")