Skip to content
Snippets Groups Projects
Commit e638d009 authored by daniquilez's avatar daniquilez
Browse files

[FIX] :bug: Validate platform company has payment mode defined

parent 329830bc
No related branches found
No related tags found
2 merge requests!504Release 2025-03-11,!502Refactor module energy communities service invoicing
......@@ -191,13 +191,10 @@ class ServiceInvoicingActionCreateWizard(models.TransientModel):
record.name
)
)
# Check current company has configuration payment mode for multicompany creation
if (
self.community_company_mids
and not self.env.company.service_invoicing_payment_mode_id
):
raise ValidationError(
_(
"Platform {} must have a service invoicing payment mode defined"
).format(self.env.company.name)
)
# Check current company has configuration payment mode for multicompany creation
if not self.env.company.service_invoicing_payment_mode_id:
raise ValidationError(
_(
"Platform {} must have a service invoicing payment mode defined"
).format(self.env.company.name)
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment