Skip to content
Snippets Groups Projects
Commit c5ca9676 authored by Emanuel Buzey's avatar Emanuel Buzey
Browse files

[REF] energy_selfconsumption: create contract name with partner data

parent d63d813b
No related branches found
No related tags found
No related merge requests found
Pipeline #60227 passed
This commit is part of merge request !228. Comments created here will be created in the context of that merge request.
......@@ -93,7 +93,8 @@ class ContractGenerationWizard(models.TransientModel):
self.env["contract.contract"].create(
{
"name": self.selfconsumption_id.product_id.contract_template_id.name,
"name": _("Contract - %s - %s")
% (self.selfconsumption_id.name, partner_data["parent_id"].name),
"partner_id": partner_data["parent_id"].id,
"invoice_partner_id": partner_data["parent_id"].id,
"recurring_invoicing_type": "post-paid",
......
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