Because of f206714af0 and subsequent commits, adding groups may raise.
We ensure that switching between tax included and tax excluded keeps working.
Closes#37481closesodoo/odoo#37633
Forward-port-of: #37517
Signed-off-by: Nans Lefebvre (len) <len@odoo.com>