[FIX] point_of_sale, hw_drivers: Payment terminals fixes

Different fixes for Payment Terminals in saas-12.5

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

closes odoo/odoo#36255

Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
This commit is contained in:
Odoo's Mergebot
2019-08-30 11:58:16 +02:00
committed by GitHub
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -474,6 +474,11 @@ if terminal_id:
eftapi = ctypes.CDLL("eftapi.so") # Library given by Six
mpdm.daemon = True
mpdm.start()
else:
try:
subprocess.check_call(["pkill", "9", "eftdvs"]) # Check if MPD server is running
except subprocess.CalledProcessError:
pass
m = Manager()
m.daemon = True
@@ -2029,6 +2029,7 @@ var PaymentScreenWidget = ScreenWidget.extend({
line.set_amount(0);
line.set_payment_status('reversed');
} else {
line.can_be_reversed = false;
line.set_payment_status('done');
}
self.render_paymentlines();