Whe a pos session is opened, it is impossible to install discount anymore, because the module tries to set a default value for the product discount. To fi this error, we are setting the default value, only on config that are closed. closes odoo/odoo#48576 X-original-commit: 4c4adf472453de65e45e71f0cbd22a36ef2ed0db Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>