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.
18 lines
616 B
18 lines
616 B
from odoo import models, fields
|
|
|
|
|
|
class PosConfig(models.Model):
|
|
_inherit = 'pos.config'
|
|
|
|
iface_tare_method = fields.Selection([
|
|
('manual', 'Input the tare manually'),
|
|
('barcode', 'Scan a barcode to set the tare'),
|
|
('both', 'Manual input and barcode'),
|
|
],
|
|
string='Tare input method',
|
|
default='both',
|
|
help="Select tare method:\n"
|
|
"* 'manual' : the scale screen has an extra tare input field;\n"
|
|
"* 'barecode' : (scan a barcode to tare the selected order line;\n"
|
|
"* 'both' : manual input and barcode methods are enabled;",
|
|
)
|