Initial commit
This commit is contained in:
22
garazd_product_label_pro/models/res_users.py
Normal file
22
garazd_product_label_pro/models/res_users.py
Normal file
@@ -0,0 +1,22 @@
|
||||
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).',
|
||||
)
|
||||
Reference in New Issue
Block a user