summaryrefslogtreecommitdiff
path: root/doc/reference
diff options
context:
space:
mode:
authorAntoine Prieels <anp@odoo.com>2019-10-31 14:53:16 +0000
committerAntoine Prieels <anp@odoo.com>2020-05-13 13:26:05 +0000
commite5d25e98b4f6ca06c61eeb64d3b4852a0de387e8 (patch)
treeba5a60817591c6042057949075a3f7f524c56747 /doc/reference
parente1c52c936d4777f53e9889832a65aaa443537ec7 (diff)
[IMP] hw_drivers: Give a priority order to drivers
Previously, we tested the `supported` methods of all drivers sequentially in alphabetical order of file names. If you wanted to extend a driver, the `supported` method of your driver could never be tested if the one of its parent was tested first. We've now added a priority order to drivers so that by default the extending driver will always be tested before the extended driver. You can still do something similar to what `is_tested_last` did by manually setting the priority of a driver to 0. Ex: The way barcode scanners is really similar to keyboards, but still requires a few modifications in the driver. We couldn't extend the keyboard driver easily because the supported method of barcode scanners had to be more strict than the one of keyboards. If the KeyboardUSBDriver was tested first, scanners were recognized as keyboard and didn't have all the specific features of scanners. TaskID: 2082282
Diffstat (limited to 'doc/reference')
0 files changed, 0 insertions, 0 deletions