From 7ac7c9776234ecb3e6ee78a441bb812c5a4086ed Mon Sep 17 00:00:00 2001 From: Toufik Ben Jaa Date: Wed, 13 Mar 2019 12:46:21 +0000 Subject: [FIX] portal: Portal User creation login check - When creating a user from the "Grant Portal Access" wizard, the code checks for duplicate users. It does so by checking if there is a user with the same login as the one we want to create. The check is case sensitive which could lead to issues. For example a mistyped email (with a uppercase somewhere) could fail the duplicate user check. Since emails are not case sensitive, we want the check to be case insensitive too. OPW-1932918 closes odoo/odoo#31818 Signed-off-by: Toufik Benjaa (tbe) --- addons/portal/wizard/portal_wizard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons') diff --git a/addons/portal/wizard/portal_wizard.py b/addons/portal/wizard/portal_wizard.py index 50c623a19e2..4818259a64d 100644 --- a/addons/portal/wizard/portal_wizard.py +++ b/addons/portal/wizard/portal_wizard.py @@ -93,7 +93,7 @@ class PortalWizardUser(models.TransientModel): partners_error_empty |= wizard_user.partner_id elif email in emails: partners_error_emails |= wizard_user.partner_id - user = self.env['res.users'].sudo().with_context(active_test=False).search([('login', '=', email)]) + user = self.env['res.users'].sudo().with_context(active_test=False).search([('login', '=ilike', email)]) if user: partners_error_user |= wizard_user.partner_id emails.append(email) -- cgit v1.2.3 From fa10ba3416691e5d1206290d17d07f8969674a60 Mon Sep 17 00:00:00 2001 From: Antoine Prieels Date: Fri, 15 Mar 2019 09:24:28 +0000 Subject: [FIX] hw_screen: Use full width of display The customer display used only a small part of the available width. closes odoo/odoo#31865 Signed-off-by: Quentin Lejeune (qle) --- addons/hw_screen/controllers/main.py | 2 +- addons/hw_screen/static/src/js/worker.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'addons') diff --git a/addons/hw_screen/controllers/main.py b/addons/hw_screen/controllers/main.py index 565bdbe02a3..a74662009b5 100644 --- a/addons/hw_screen/controllers/main.py +++ b/addons/hw_screen/controllers/main.py @@ -150,7 +150,7 @@ class HardwareScreen(web.Home): -
+

Odoo Point of Sale

diff --git a/addons/hw_screen/static/src/js/worker.js b/addons/hw_screen/static/src/js/worker.js index 55e389e78ab..b67d611c4ca 100644 --- a/addons/hw_screen/static/src/js/worker.js +++ b/addons/hw_screen/static/src/js/worker.js @@ -32,8 +32,8 @@ $("head").append($parsedHTML.find(".resources").html()); } - $(".container").html($parsedHTML.find('.pos-customer_facing_display').html()); - $(".container").attr('class', 'container').addClass($parsedHTML.find('.pos-customer_facing_display').attr('class')); + $(".container-fluid").html($parsedHTML.find('.pos-customer_facing_display').html()); + $(".container-fluid").attr('class', 'container-fluid').addClass($parsedHTML.find('.pos-customer_facing_display').attr('class')); var d = $('.pos_orderlines_list'); d.scrollTop(d.prop("scrollHeight")); -- cgit v1.2.3 From 79d5d57d0a614c8b18b7dccfaab80afba5b9a0d2 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Fri, 15 Mar 2019 10:14:19 +0000 Subject: [FIX] l10n_be_intrastat: typo EXTRF now 29/19 Intrastat was modified on january 2019 to backport some features for new regulation of belgian intrastat in c5a8e3975. There was a coding typo so EXTRF was code attribute instead. sources: https://www.nbb.be/doc/dq/e_pdf_ex/docxml-en.pdf https://www.nbb.be/doc/dq/f_pdf_ex/docxml-fr2019.pdf opw-1948336 closes #31875 Signed-off-by: Nicolas Lempereur (nle) --- addons/l10n_be_intrastat/wizard/xml_decl.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'addons') diff --git a/addons/l10n_be_intrastat/wizard/xml_decl.py b/addons/l10n_be_intrastat/wizard/xml_decl.py index 067be44ea06..6d07562acde 100644 --- a/addons/l10n_be_intrastat/wizard/xml_decl.py +++ b/addons/l10n_be_intrastat/wizard/xml_decl.py @@ -222,11 +222,13 @@ class XmlDeclaration(models.TransientModel): if dispatchmode: mode1 = 'out_invoice' mode2 = 'in_refund' + extrf = "29" declcode = self._get_expedition_code(extendedmode) declform = self._get_expedition_form(extendedmode) else: mode1 = 'in_invoice' mode2 = 'out_refund' + extrf = "19" declcode = self._get_reception_code(extendedmode) declform = self._get_reception_form(extendedmode) @@ -271,7 +273,7 @@ class XmlDeclaration(models.TransientModel): invoicelines = self.env['account.invoice.line'].browse(invoicelines_ids) for inv_line in invoicelines: - linekey = self._get_intrastat_linekey(declcode, inv_line, dispatchmode, extendedmode) + linekey = self._get_intrastat_linekey(extrf, inv_line, dispatchmode, extendedmode) if linekey is None: continue -- cgit v1.2.3 From 791a38a655009a063e488c07bb141f35e5a52574 Mon Sep 17 00:00:00 2001 From: Denis Vermylen Date: Tue, 12 Mar 2019 16:15:39 +0000 Subject: [FIX] web: qweb2: allow null values in a foreach iteration Before this commit iteration in a t-foreach containing null or undefined values crashed because they have no attributes. closes odoo/odoo#31828 Signed-off-by: Fabien Meghazi --- addons/web/static/lib/qweb/qweb2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons') diff --git a/addons/web/static/lib/qweb/qweb2.js b/addons/web/static/lib/qweb/qweb2.js index 378c5eb6023..f59318ff910 100644 --- a/addons/web/static/lib/qweb/qweb2.js +++ b/addons/web/static/lib/qweb/qweb2.js @@ -173,7 +173,7 @@ var QWeb2 = { new_dict[as_first] = index === 0; new_dict[as_last] = index + 1 === size; new_dict[as_parity] = (index % 2 == 1 ? 'odd' : 'even'); - if (cur.constructor === Object) { + if (cur && cur.constructor === Object) { this.extend(new_dict, cur); } new_dict[as] = cur; -- cgit v1.2.3