Steps to reproduce: - Create a form view with a `div` with class `oe_button_box` and an invisible modifier inside a `sheet` tag - Open the form view => The invisible modifier is not applied on the button box. Since https://github.com/odoo/odoo/pull/116641, the invisible modifier set on a button box inside a sheet tag is **replaced** by a condition that check if the form is displayed in a dialog. This is not correct, the invisible modifier should be **extended** with the dialog condition. closes odoo/odoo#141259 X-original-commit: 570a1a9bf3e7c3012c516beb8850f320a6cc8f63 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com> Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>