Browse Source

Fix flake8.

pull/501/head
François Kawala 4 years ago
parent
commit
05a49b8132
  1. 1
      pos_tare/models/__init__.py
  2. 2
      pos_tare/models/barcode_rule.py
  3. 4
      pos_tare/models/pos_config.py

1
pos_tare/models/__init__.py

@ -1,3 +1,2 @@
from . import pos_config
from . import barcode_rule

2
pos_tare/models/barcode_rule.py

@ -1,9 +1,9 @@
from odoo import _, models, fields
class BarcodeRule(models.Model):
_inherit = 'barcode.rule'
type = fields.Selection(selection_add=[
('tare', _('Tare'))
])

4
pos_tare/models/pos_config.py

@ -3,7 +3,7 @@ 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'),
@ -15,4 +15,4 @@ class PosConfig(models.Model):
"* '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';",
)
)
Loading…
Cancel
Save