Files
odoo_source/addons/crm/populate/tools.py
T
Thibault Delavallée 662a5c5d01 [IMP] crm: allow to populate crm
Purpose of this commit is to add a first populate implementation in CRM to
create leads. Indeed as CRM application may have to handle lots of leads we
should ease data creation to test performance in several use cases.

Task-2679887

closes odoo/odoo#79150

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-06-24 19:33:53 +02:00

50 lines
1.2 KiB
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
# lead specific values
lead_values = {
"active": {
True: 0.99,
False: 0.01
},
}
# people
_p_forename_groups = [
'Norbert', 'Jacqueline', 'Bastien', 'Monique',
'Gretta', 'Juan Carlos', 'Ramon', 'Inrietta',
'John', 'David', 'Luke', 'Beverly', 'Hillary', 'Christina',
]
_p_middlename_groups = [
'Ugly Panda', 'Butterfly',
'Neo-Tyrant', 'The Beast',
'La Chignole', 'Le Cave', 'Gai Luron', 'La poutre',
]
_p_surname_groups = [
'Poilvache', 'Tartopoils', 'Boitaclous', 'Boustifaille',
'Campbell', 'Wonnegain', 'McShire', 'Scott', 'Doe',
]
# companies
_c_name_groups = [
'Woody', 'Tree', 'Flower', 'Garden'
'Furniture', 'Kitchen', 'Desk', 'Window',
'Computer', 'CPU',
]
_c_surname_groups = [
'Dealer', 'Sellers',
'Carpenters', 'Foundry',
]
# case
_case_prefix_groups = [
'Interested in', 'Looking for',
'Issue with', 'Troubles with', 'Not sure where to find',
'Want to buy', 'Want to sell', 'Want to paint',
]
_case_object_groups = [
'Computer', 'Keyboard', 'Screen', 'Mouse',
'Bed', 'Chair', 'Couch', 'Desk',
'Toilet paper',
]