Skip to content

Commit

Permalink
[MIG] crm_lead_firstname: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BertVGroenendael committed Nov 8, 2024
1 parent a5e9596 commit e75e492
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crm_lead_firstname/models/crm_lead.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class CrmLead(models.Model):
contact_name = fields.Char("First name")
contact_lastname = fields.Char("Last name")

def _prepare_customer_values(self, partner_name, is_company, parent_id=False):
def _prepare_customer_values(self, partner_name, is_company=False, parent_id=False):
"""Ensure first and last names of contact match those in lead."""
lead_partner_data = super()._prepare_customer_values(
partner_name, is_company, parent_id
Expand Down
4 changes: 2 additions & 2 deletions crm_lead_firstname/tests/test_crm_lead.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 2016 Antiun Ingeniería S.L. - Jairo Llopis
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from odoo.tests.common import Form, TransactionCase
from odoo.tests import Form
from odoo.tests.common import TransactionCase


class FirstNameCase(TransactionCase):
Expand Down

0 comments on commit e75e492

Please sign in to comment.