from odoo import fields, models class ResUsers(models.Model): _inherit = 'res.users' print_label_template_id = fields.Many2one( comodel_name='print.product.label.template', string='Default Template', ) print_label_allowed_template_ids = fields.Many2many( comodel_name='print.product.label.template', string='Allowed Templates', help='Restrict this user to the specified label templates. If no templates are specified, allow all templates.' 'Please take a note that the system administrators cannot be restricted, they always see all templates.', ) print_label_directly = fields.Boolean( string='Immediate Printing', help='If this option is active and the default label template is specified, ' 'after clicking on the Print Labels button the alternative print wizard will be skipped, ' 'and labels will be send to print without downloading (the browser printing window will be shown).', )