odoo/upgrade#6629
Created by Logistics, Mohammad Abdulmoneim (abdu)
- label
- odoo-dev:master-merge-uom-packaging-abdu
- head
- 4306466e1e2ae1146b63817562b8383c01bf3607
odoo/odoo | odoo/enterprise | odoo/upgrade | |
---|---|---|---|
saas-18.1 | #184131 | #72206 | #6629 |
saas-18.2 | |||
saas-18.3 | |||
saas-18.4 | |||
19.0 | |||
master | #193490 | #77092 |
[IMP] uom/saas~18.1: remove uom categories and product packagings
To adapt for the changes made in odoo/odoo#184131 and
odoo/enterprise#72206, this PR applies the following changes:
- Product Packagings that have the same name and quantity are merged
into oneuom_uom
record and applied on all the products that had
those packagings applied. Their corresponding barcodes are also
preserved and applied on those products using the new model
product.uom
. - UoMs that belonged to the same category will have their
relative_uom_id
set to the reference unit of that category. - Every product will have all the units in the same category of its base
unit addded to the new fielduom_ids
, so that they can be used in
sale orders, pickings, etc. - All the fields related to product packagings in all models are
removed. - Removal of
uom_uom
fields that are mentioned in the community PR. - Remove usage of
uom_uom.rounding
field.
> Warning Please follow and check the relevant boxes for your PR, otherwise the review may take longer.
For a PR that adds a new upgrade script (for the Odoo's master
branch or one of the RR versions):
- [x] I've added the references to the Enterprise and/or Community PRs in the commit message, even if they are already merged.
- [x] I've added an overall description of the changes made in the Community/Enterprise branches.
For all PRs:
- [x] My commit's title follows the right format.
- [x] My commit's body includes information about the changes.
- [ ] I've added odoo/upgrade
as a reviewer.
- [x] I've read and understood this list.
- [x] I will ensure all the CI checks are green.
> Note More info can be found in the wiki.