Skip to content
Snippets Groups Projects

Refactor module energy communities service invoicing

Merged Álvaro García requested to merge feacture/selfconsumption_service_invoice into dev
1 file
+ 7
10
Compare changes
  • Side-by-side
  • Inline
@@ -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)
)
Loading