Skip to content

Commit

Permalink
[MIG] crm_lead_firstname: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
celm1990 committed Jan 13, 2024
1 parent c8916de commit 1297423
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crm_lead_firstname/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"name": "Firstname and Lastname in Leads",
"summary": "Specify split names for contacts in leads",
"version": "16.0.1.0.1",
"version": "17.0.1.0.0",
"category": "Customer Relationship Management",
"website": "https://github.com/OCA/crm",
"author": "Tecnativa, Odoo Community Association (OCA)",
Expand Down
4 changes: 2 additions & 2 deletions crm_lead_firstname/models/crm_lead.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class CrmLead(models.Model):

def _prepare_customer_values(self, partner_name, is_company, parent_id=False):
"""Ensure first and last names of contact match those in lead."""
lead_partner_data = super(CrmLead, self)._prepare_customer_values(
lead_partner_data = super()._prepare_customer_values(
partner_name, is_company, parent_id
)
if not is_company:
Expand All @@ -28,7 +28,7 @@ def _prepare_customer_values(self, partner_name, is_company, parent_id=False):

def _prepare_values_from_partner(self, partner):
"""Recover first and last names from partner if available."""
result = super(CrmLead, self)._prepare_values_from_partner(partner)
result = super()._prepare_values_from_partner(partner)

if partner:
if not partner.is_company:
Expand Down
2 changes: 1 addition & 1 deletion crm_lead_firstname/tests/test_crm_lead.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class FirstNameCase(TransactionCase):
@classmethod
def setUpClass(cls):
super(FirstNameCase, cls).setUpClass()
super().setUpClass()
cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True))
cls.lead_model = cls.env["crm.lead"]
cls.partner_model = cls.env["res.partner"]
Expand Down

0 comments on commit 1297423

Please sign in to comment.