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

4 years ago
4 years ago
  1. from odoo import models, fields
  2. class PosConfig(models.Model):
  3. _inherit = 'pos.config'
  4. iface_tare_method = fields.Selection([
  5. ('manual', 'Input the tare manually'),
  6. ('barcode', 'Scan a barcode to set the tare'),
  7. ('both', 'Manual input and barcode'),
  8. ],
  9. string='Tare input method',
  10. default='both',
  11. help="Select tare method:\n"
  12. "* 'manual' : the scale screen has an extra tare input field;\n"
  13. "* 'barecode' : (scan a barcode to tare the selected order line;\n"
  14. "* 'both' : manual input and barcode methods are enabled;",
  15. )