Skip to content
Snippets Groups Projects
Commit 323985da authored by Daniel Palomar's avatar Daniel Palomar
Browse files

Fix the invoice data info get from partner_data instead of contract_data

parent 7f57cc77
No related branches found
No related tags found
1 merge request!9Get the InvoiceAddress from the PartnerData
Pipeline #4645 passed
......@@ -161,15 +161,15 @@ class CRMLeadFromContractForm:
}
}
)
if self.partner_data.get("invoice_address"):
if self.partner_data.get("invoice_street"):
mobile_isp_info_data.update(
{
"invoice_address": {
"street": self.contract_data.get("invoice_street"),
"zip_code": self.contract_data.get("invoice_zip"),
"city": self.contract_data.get("invoice_city"),
"state": self.contract_data.get("invoice_subdivision"),
"country": self.contract_data.get("invoice_country"),
"street": self.partner_data.get("invoice_street"),
"zip_code": self.partner_data.get("invoice_zip"),
"city": self.partner_data.get("invoice_city"),
"state": self.partner_data.get("invoice_subdivision"),
"country": self.partner_data.get("invoice_country"),
}
}
)
......@@ -229,15 +229,15 @@ class CRMLeadFromContractForm:
}
}
)
if self.partner_data.get("invoice_address"):
if self.partner_data.get("invoice_street"):
broadband_isp_info_data.update(
{
"invoice_address": {
"street": self.contract_data.get("invoice_street"),
"zip_code": self.contract_data.get("invoice_zip"),
"city": self.contract_data.get("invoice_city"),
"state": self.contract_data.get("invoice_subdivision"),
"country": self.contract_data.get("invoice_country"),
"street": self.partner_data.get("invoice_street"),
"zip_code": self.partner_data.get("invoice_zip"),
"city": self.partner_data.get("invoice_city"),
"state": self.partner_data.get("invoice_subdivision"),
"country": self.partner_data.get("invoice_country"),
}
}
)
......
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