Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[12.0][DO NOT MERGE] Add @api.model_create_multi on crm.lead #74

Open
wants to merge 1 commit into
base: 12.0-prg_master
Choose a base branch
from

Conversation

marielejeune
Copy link

@marielejeune marielejeune commented Dec 27, 2022

Create method of crm.lead in crm module has api.model decorator, hence does not allow to create by batches.
We improve it by adding api.model_create_multi decorator.

Important note:
There is a limitation to creation by batch: if all vals do not have the same type, the context that is passed through super is not consistent.
Therefore this patch will only be used in bugfix for a short period, to speed-up a huge leads import.


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

@marielejeune marielejeune force-pushed the 12.0-crm_lead_create_multi-mle branch 2 times, most recently from d9a3432 to fbe919c Compare January 3, 2023 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant