odoo/upgrade#7693
Created by Logistics, Mohammad Abdulmoneim (abdu)
Blocked
- Merge method
- Review
-
CI
- ci/runbot: Test upgrades between stable versions
- ci/upgrade_enterprise: Test upgrades for enterprise master
- Linked pull requests
- label
- odoo-dev:master-remove-scrap-model-abdu
- head
- d6bc6d8e9f50bf72f6bcdec63350f10e190767ce
| odoo/odoo | odoo/enterprise | odoo/upgrade | odoo/documentation | |
|---|---|---|---|---|
| master | #210299 missing r+ | #85706 missing r+ | #7693 missing r+ | #15776 missing r+ |
[IMP] stock/saas~19.2: remove scrap model
This commit adapts for the changes introduced in odoo/odoo#210299. Since
stock.scrap model is removed and replaced completely by stock.move
and stock.move.line, scraps migration method is determined based on
its state. Draft scraps have no related stock move, so this commit
creates a corresponding stock move and a move line for each draft scrap.
Done scraps have already a related move and move line, so the commit
only migrates the fields that didn't exist before on stock.move.line,
namely: scrap_reason_tag_ids and should_replenish_scrapped and also
marks those move lines as scrapped using the new field is_scrap.
Related PRs: odoo/odoo#210299, odoo/enterprise#85706
> 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.