From 6814f27bbcf2f35030a9bbc9b73727bbc196fed7 Mon Sep 17 00:00:00 2001 From: Gert Pellin Date: Mon, 25 Mar 2019 07:47:25 +0000 Subject: [PATCH 1/8] [FIX] hw_escpos: opening pulse cashdrawer Some cashdrawers will not open when the command is send. This can be solved by sending a longer opening pulse. Used fix of newer library: https://github.com/python-escpos/python-escpos/blob/0a89ee2b8610452f18b521af71b1ab1af7932894/escpos/constants.py#L40 Explanation for command: http://www.beaglehardware.com/howtoprogramcashdrawer.html closes odoo/odoo#32079 Signed-off-by: Martin Trigaux (mat) --- addons/hw_escpos/escpos/constants.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/addons/hw_escpos/escpos/constants.py b/addons/hw_escpos/escpos/constants.py index 238e8bdbf0f..6519c76f69c 100644 --- a/addons/hw_escpos/escpos/constants.py +++ b/addons/hw_escpos/escpos/constants.py @@ -19,9 +19,10 @@ DLE_EOT_PAPER = '\x10\x04\x04' HW_INIT = '\x1b\x40' # Clear data in buffer and reset modes HW_SELECT = '\x1b\x3d\x01' # Printer select HW_RESET = '\x1b\x3f\x0a\x00' # Reset printer hardware -# Cash Drawer -CD_KICK_2 = '\x1b\x70\x00' # Sends a pulse to pin 2 [] -CD_KICK_5 = '\x1b\x70\x01' # Sends a pulse to pin 5 [] +# Cash Drawer (ESC p ) +_CASH_DRAWER = lambda m, t1='', t2='': ESC + 'p' + m + chr(t1) + chr(t2) +CD_KICK_2 = _CASH_DRAWER('\x00', 50, 50) # Sends a pulse to pin 2 [] +CD_KICK_5 = _CASH_DRAWER('\x01', 50, 50) # Sends a pulse to pin 5 [] # Paper PAPER_FULL_CUT = '\x1d\x56\x00' # Full cut paper PAPER_PART_CUT = '\x1d\x56\x01' # Partial cut paper From 2fa9e881f4a5800b4d84e858ed667248cbec6514 Mon Sep 17 00:00:00 2001 From: Olivier Colson Date: Mon, 25 Mar 2019 15:08:55 +0000 Subject: [PATCH 2/8] [FIX] l10n_fr: fix wrong tag on tax Before that, the tag set on this tag for its base amount was wrong; it caused it to be reported in the wrong section in l10n_fr_reports. closes odoo/odoo#32103 Signed-off-by: Nicolas Martinelli (nim) --- addons/l10n_fr/data/account_tax_data.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/l10n_fr/data/account_tax_data.xml b/addons/l10n_fr/data/account_tax_data.xml index 4ec5e434cd8..89296d4a4bb 100644 --- a/addons/l10n_fr/data/account_tax_data.xml +++ b/addons/l10n_fr/data/account_tax_data.xml @@ -763,7 +763,7 @@ percent - + purchase @@ -837,7 +837,7 @@ percent - + purchase @@ -1030,7 +1030,7 @@ purchase - + From 24961b9e2f11935020e74c4641d75ae9694f0c6a Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Tue, 26 Mar 2019 07:58:14 +0000 Subject: [PATCH 3/8] [FIX] website_sale_options: striked price - Set the 'Public Pricelist' with 'Discount Policy: Discount included in the price'. - Go to the shop and search the product 'iPad Retina Display' - Add product to cart by using the quick add to cart button The 'Add to Cart' modal show public price & discount to the customer. Closes #31378 opw-1944362 closes odoo/odoo#32114 Signed-off-by: Nicolas Martinelli (nim) --- .../views/website_sale_options_templates.xml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/addons/website_sale_options/views/website_sale_options_templates.xml b/addons/website_sale_options/views/website_sale_options_templates.xml index f7b0166fe0d..8b8e4221970 100644 --- a/addons/website_sale_options/views/website_sale_options_templates.xml +++ b/addons/website_sale_options/views/website_sale_options_templates.xml @@ -67,13 +67,15 @@ - + + + Date: Tue, 26 Mar 2019 08:41:12 +0000 Subject: [PATCH 4/8] [FIX] account_payment: pay credit note Complement of commit 9a450ac1622684e4fba4004be98d06ecad499099 opw-1958997 closes odoo/odoo#32115 Signed-off-by: Nicolas Martinelli (nim) --- addons/account_payment/views/account_portal_templates.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account_payment/views/account_portal_templates.xml b/addons/account_payment/views/account_portal_templates.xml index e92831620b6..7383a5cf303 100644 --- a/addons/account_payment/views/account_portal_templates.xml +++ b/addons/account_payment/views/account_portal_templates.xml @@ -45,7 +45,7 @@