[FIX] hw_drivers: Use helper for Keyboard driver

We have implemented helpers that are not used in the KeyboardUSBDriver
This commit is contained in:
lejeune quentin
2019-09-10 14:14:14 +00:00
parent fb81292d31
commit d098981b46
@@ -181,9 +181,7 @@ class KeyboardUSBDriver(Driver):
else:
data = {}
data[self.device_identifier] = layout
subprocess.check_call(["sudo", "mount", "-o", "remount,rw", "/"])
file_path.write_text(json.dumps(data))
subprocess.check_call(["sudo", "mount", "-o", "remount,ro", "/"])
helpers.write_file('odoo-keyboard-layouts.conf', json.dumps(data))
def load_layout(self):
"""Read the layout from the saved filed and set it as current layout.