[MIG] [19.0] crm_lead_product: Migration to 19.0#739
Conversation
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/
[MIG] crm_lead_product: Migration to 18.0
aa929ba to
6f9ebbd
Compare
StefanRijnhart
left a comment
There was a problem hiding this comment.
Thanks! Some minor comments.
6f9ebbd to
2b3d9b7
Compare
StefanRijnhart
left a comment
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
luisDIXMIT
left a comment
There was a problem hiding this comment.
Code review and tested on runboat, LGTM!
No description provided.