Skip to content

Commit e38f7da

Browse files
committed
[ADD] js: initialize function. xml: pos config view
1 parent 5b2fd40 commit e38f7da

4 files changed

Lines changed: 118 additions & 93 deletions

File tree

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22

33
<odoo noupdate="1">
4-
5-
6-
<record id="point_of_sale.pos_config_main" model="pos.config">
7-
<field name="iface_customer_display" eval="True"/>
8-
</record>
9-
10-
4+
<record id="point_of_sale.pos_config_main" model="pos.config">
5+
<field name="iface_customer_display" eval="True"/>
6+
</record>
117
</odoo>

pos_customer_display/models/pos_customer_display.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ class PosConfig(models.Model):
1111
_inherit = 'pos.config'
1212

1313
iface_customer_display = fields.Boolean(
14-
default=False, string='Customer Display', help="Display data on the customer display")
14+
string='Customer Display Device Management', help="Display data on the customer display device")
1515
customer_display_line_length = fields.Integer(
16-
string='Line Length of the Customer Display', default=20,
16+
string='Line Length', default=20,
1717
help="Length of the LEDs lines of the customer display")
1818
customer_display_msg_next_l1 = fields.Char(
1919
string="Next Customer (top line)", default="Welcome!",
@@ -50,7 +50,7 @@ def _check_customer_display_length(self):
5050
_('POS Closed (bottom line)'):
5151
self.customer_display_msg_closed_l2,
5252
}
53-
for field, msg in to_check.items():
53+
for field, msg in list(to_check.items()):
5454
if msg and len(msg) > maxsize:
5555
raise ValidationError(_(
5656
"The message for customer display '%s' is too "

0 commit comments

Comments
 (0)