Skip to content

[MIG] [19.0] crm_lead_product: Migration to 19.0#739

Open
PieterPaulussen wants to merge 40 commits into
OCA:19.0from
The-O-Team:19.0-mig-crm_lead_product
Open

[MIG] [19.0] crm_lead_product: Migration to 19.0#739
PieterPaulussen wants to merge 40 commits into
OCA:19.0from
The-O-Team:19.0-mig-crm_lead_product

Conversation

@PieterPaulussen
Copy link
Copy Markdown

No description provided.

AdriaGForgeFlow and others added 30 commits April 16, 2026 15:34
add filter for open opportunities in pipeline by product report

[IMP] Extend test coverage
Currently translated at 100.0% (63 of 63 strings)

Translation: crm-12.0/crm-12.0-crm_lead_product
Translate-URL: https://translation.odoo-community.org/projects/crm-12-0/crm-12-0-crm_lead_product/es/
Currently translated at 100.0% (63 of 63 strings)

Translation: crm-12.0/crm-12.0-crm_lead_product
Translate-URL: https://translation.odoo-community.org/projects/crm-12-0/crm-12-0-crm_lead_product/ca/
* avoid conflict when testing a database with sale installed
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: crm-13.0/crm-13.0-crm_lead_product
Translate-URL: https://translation.odoo-community.org/projects/crm-13-0/crm-13-0-crm_lead_product/
Currently translated at 100.0% (63 of 63 strings)

Translation: crm-13.0/crm-13.0-crm_lead_product
Translate-URL: https://translation.odoo-community.org/projects/crm-13-0/crm-13-0-crm_lead_product/it/
Currently translated at 100.0% (63 of 63 strings)

Translation: crm-13.0/crm-13.0-crm_lead_product
Translate-URL: https://translation.odoo-community.org/projects/crm-13-0/crm-13-0-crm_lead_product/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: crm-13.0/crm-13.0-crm_lead_product
Translate-URL: https://translation.odoo-community.org/projects/crm-13-0/crm-13-0-crm_lead_product/
@PieterPaulussen PieterPaulussen force-pushed the 19.0-mig-crm_lead_product branch 6 times, most recently from aa929ba to 6f9ebbd Compare April 16, 2026 19:52
Copy link
Copy Markdown
Member

@StefanRijnhart StefanRijnhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Some minor comments.

Comment thread crm_lead_product/models/crm_lead_line.py Outdated
Comment thread crm_lead_product/report/crm_product_report_views.xml Outdated
Comment thread crm_lead_product/models/crm_lead_line.py Outdated
Comment thread crm_lead_product/models/crm_lead_line.py Outdated
Copy link
Copy Markdown

@luisDIXMIT luisDIXMIT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is not calculating the prorated revenue?

Grabacion.de.pantalla.desde.2026-04-21.08-04-48.mp4

@PieterPaulussen PieterPaulussen force-pushed the 19.0-mig-crm_lead_product branch from 6f9ebbd to 2b3d9b7 Compare April 23, 2026 20:12
Comment thread crm_lead_product/models/crm_lead_line.py Outdated
Copy link
Copy Markdown
Member

@StefanRijnhart StefanRijnhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates! One small change remaining, for consistency.

About the prorated revenue, looks like that is because it is not being computed for 'lead' type leads, only opportunities. Maybe that's because in some older versions, the probability field was not visible on 'lead' type leads? Maybe good to update this logic as the proability field is visible and is populated predictively nowadays.

if (
not self.uom_id
or product.uom_id.category_id.id != self.uom_id.category_id.id
or product.uom_id.relative_uom_id.id != self.uom_id.relative_uom_id.id
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here I would also check against allowed uoms rather than relative_uom_id. The field relative_uom_id is not used anywhere in business logic in Odoo 19.

Copy link
Copy Markdown

@luisDIXMIT luisDIXMIT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review and tested on runboat, LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.