diff --git a/l10n_fr_chorus_account/models/account_move.py b/l10n_fr_chorus_account/models/account_move.py index 4f2811ee1..42a3892cf 100644 --- a/l10n_fr_chorus_account/models/account_move.py +++ b/l10n_fr_chorus_account/models/account_move.py @@ -193,6 +193,13 @@ def _chorus_check_validity(self): ) % cpartner.display_name ) + if not cpartner.fr_chorus_required: + raise UserError( + _( + "The field 'Info Required for Chorus' on the partner is empty " + "please fill as it's required for chorus" + ) + ) if ( cpartner.fr_chorus_required in ("service", "service_and_engagement") and not self.partner_id.chorus_service_ok()