[IMP] crm: add tests for MC computation on lead with partner company
Currently using a customer with a company set on a lead without company crashes, as it keep a void company on the lead. This is not compatible with the company set on the partner itself. OPW-2805181 Task-2888330 X-original-commit: 51be6cab5c4437ef56de5d1b25c0ba8486d25291 Part-of: odoo/odoo#94493
This commit is contained in:
committed by
Thibault Delavallée
parent
261fd732f8
commit
6762590b9d
@@ -296,6 +296,13 @@ class TestCrmCommon(TestSalesCommon, MailCase):
|
||||
'user_id': cls.user_sales_manager.id,
|
||||
})
|
||||
|
||||
cls.partner_c2 = cls.env['res.partner'].create({
|
||||
'company_id': cls.company_2.id,
|
||||
'email': '"Partner C2" <partner_c2@multicompany.example.com>',
|
||||
'name': 'Customer for C2',
|
||||
'phone': '+32455001122',
|
||||
})
|
||||
|
||||
def _create_leads_batch(self, lead_type='lead', count=10, email_dup_count=0,
|
||||
partner_count=0, partner_ids=None, user_ids=None,
|
||||
country_ids=None, probabilities=None, suffix=''):
|
||||
|
||||
Reference in New Issue
Block a user