-
Notifications
You must be signed in to change notification settings - Fork 10.6k
[REF] inventory: move removal strats into own folder #7530
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
Conversation
19980bd to
3946ac0
Compare
|
@samueljlieber can you run sanity checks here and ensure everything is proper before JCS's review? |
StraubCreative
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Felicious comment below for your consideration.
content/applications/inventory_and_mrp/inventory/warehouses_storage/removal_strategies.rst
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Felicious, this is just a quick review on the restructure before passing to JCS! Coincidentally, I was just reading this documentation yesterday and thought that this restructure was needed, so great timing!
I agree with ZST and JCS that removal_strategies.rst can contain the contents of removal.rst:
removal_strategies.rst (removal.rst contents)
├── closest_location.rst
├── fefo.rst
├── fifo.rst
├── least_packages.rst
└── lifo.rst
You are also missing redirects for each of the moved files, please add them to the redirects/17.0.txt file.
Once these edits are made, tag me once more so I can review before I pass it along 🙂
Thank you!
3946ac0 to
72ce8b0
Compare
samueljlieber
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Felicious, thank you for implementing the changes! I have just a couple of structural fixes, please see below for reference. I will push up a commit with these changes so we can get this PR in structure review 🙂 I am approving my review of the structure, I will still need to do a full technical review.
| @@ -1,7 +1,20 @@ | |||
| :nosearch: | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to include the :nosearch: meta tag because removal_strategies.rst now has content that we want searchable (instead of only a TOC).
| :nosearch: |
|
|
||
| .. list-table:: | ||
| :header-rows: 1 | ||
| :stub-columns: 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is out of scope of this PR, but want to note that this table does not format well on mobile. Maybe in another [IMP] PR this could be adjusted? I could see a card layout being useful here, the Accounting and Invoicing doc is a good example.
redirects/17.0.txt
Outdated
|
|
||
| # removal strategies intro | ||
|
|
||
| applications/inventory_and_mrp/inventory/warehouses_storage/advanced_operations_warehouse/removal.rst | ||
| applications/inventory_and_mrp/inventory/warehouses_storage/removal_strategies.rst | ||
|
|
||
| # fifo | ||
| applications/inventory_and_mrp/inventory/warehouses_storage/advanced_operations_warehouse/fifo.rst | ||
| applications/inventory_and_mrp/inventory/warehouses_storage/removal_strategies/fifo.rst | ||
|
|
||
| # lifo | ||
| applications/inventory_and_mrp/inventory/warehouses_storage/advanced_operations_warehouse/lifo.rst | ||
| applications/inventory_and_mrp/inventory/warehouses_storage/removal_strategies/lifo.rst | ||
|
|
||
| # fefo | ||
| applications/inventory_and_mrp/inventory/warehouses_storage/advanced_operations_warehouse/fefo.rst | ||
| applications/inventory_and_mrp/inventory/warehouses_storage/removal_strategies/fefo.rst | ||
|
|
||
| # closest locations | ||
| applications/inventory_and_mrp/inventory/warehouses_storage/advanced_operations_warehouse/closest_location.rst | ||
| applications/inventory_and_mrp/inventory/warehouses_storage/removal_strategies/closest_location.rst | ||
|
|
||
| # least packages | ||
| applications/inventory_and_mrp/inventory/warehouses_storage/advanced_operations_warehouse/least_packages.rst | ||
| applications/inventory_and_mrp/inventory/warehouses_storage/removal_strategies/least_packages.rst |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Each redirect should be on one line, grouped by the app/module, and a comment summarizing the redirect can be added at the end of the redirect line 🙂
| # removal strategies intro | |
| applications/inventory_and_mrp/inventory/warehouses_storage/advanced_operations_warehouse/removal.rst | |
| applications/inventory_and_mrp/inventory/warehouses_storage/removal_strategies.rst | |
| # fifo | |
| applications/inventory_and_mrp/inventory/warehouses_storage/advanced_operations_warehouse/fifo.rst | |
| applications/inventory_and_mrp/inventory/warehouses_storage/removal_strategies/fifo.rst | |
| # lifo | |
| applications/inventory_and_mrp/inventory/warehouses_storage/advanced_operations_warehouse/lifo.rst | |
| applications/inventory_and_mrp/inventory/warehouses_storage/removal_strategies/lifo.rst | |
| # fefo | |
| applications/inventory_and_mrp/inventory/warehouses_storage/advanced_operations_warehouse/fefo.rst | |
| applications/inventory_and_mrp/inventory/warehouses_storage/removal_strategies/fefo.rst | |
| # closest locations | |
| applications/inventory_and_mrp/inventory/warehouses_storage/advanced_operations_warehouse/closest_location.rst | |
| applications/inventory_and_mrp/inventory/warehouses_storage/removal_strategies/closest_location.rst | |
| # least packages | |
| applications/inventory_and_mrp/inventory/warehouses_storage/advanced_operations_warehouse/least_packages.rst | |
| applications/inventory_and_mrp/inventory/warehouses_storage/removal_strategies/least_packages.rst | |
| # inventory_and_mrp/inventory | |
| applications/inventory_and_mrp/inventory/warehouses_storage/advanced_operations_warehouse/closest_location.rst applications/inventory_and_mrp/inventory/warehouses_storage/removal_strategies/closest_location.rst # advanced_operations_warehouse/closest_location.rst --> removal_strategies/closest_location.rst | |
| applications/inventory_and_mrp/inventory/warehouses_storage/advanced_operations_warehouse/fefo.rst applications/inventory_and_mrp/inventory/warehouses_storage/removal_strategies/fefo.rst # advanced_operations_warehouse/fefo.rst --> removal_strategies/fefo.rst | |
| applications/inventory_and_mrp/inventory/warehouses_storage/advanced_operations_warehouse/fifo.rst applications/inventory_and_mrp/inventory/warehouses_storage/removal_strategies/fifo.rst # advanced_operations_warehouse/fifo.rst --> removal_strategies/fifo.rst | |
| applications/inventory_and_mrp/inventory/warehouses_storage/advanced_operations_warehouse/least_packages.rst applications/inventory_and_mrp/inventory/warehouses_storage/removal_strategies/least_packages.rst # advanced_operations_warehouse/least_packages.rst --> removal_strategies/least_packages.rst | |
| applications/inventory_and_mrp/inventory/warehouses_storage/advanced_operations_warehouse/lifo.rst applications/inventory_and_mrp/inventory/warehouses_storage/removal_strategies/lifo.rst # advanced_operations_warehouse/lifo.rst --> removal_strategies/lifo.rst | |
| applications/inventory_and_mrp/inventory/warehouses_storage/advanced_operations_warehouse/removal.rst applications/inventory_and_mrp/inventory/warehouses_storage/removal_strategies.rst # advanced_operations_warehouse/removal_strategies.rst --> removal_strategies/removal_strategies.rst | |
72ce8b0 to
e78f093
Compare
|
Hi @jcs-odoo ! This restructure PR in the inventory scope is ready for your review (: Appreciate your help with this! |
jcs-odoo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi!
Nice work! :) I left a few really minor comments, but you can directly merge this once addressed.
@robodoo delegate+
Cheers!
| .. toctree:: | ||
| :titlesonly: | ||
|
|
||
| removal_strategies/fifo | ||
| removal_strategies/lifo | ||
| removal_strategies/fefo | ||
| removal_strategies/closest_location | ||
| removal_strategies/least_packages | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor suggestion: put the toctree at the end of the document, as it is usually what we do on pages that have both content to display and children pages.
|
|
||
| .. seealso:: | ||
| - :doc:`Other removal strategies <removal>` | ||
| - :doc:`About removal strategies <../removal_strategies>` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically, changing the wording would be part of another commit since it could also be applied to older versions than 17.0. But this is such a minor change that you can disregard my comment. It's mostly to keep in mind that when we apply different types of changes, they may apply to different versions.
|
|
||
| .. seealso:: | ||
| :doc:`Other removal strategies <removal>` | ||
| :doc:`About removal strategies <../removal_strategies>` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here as my other comment
611da68 to
f13c86f
Compare
|
@robodoo r+ |
|
@Felicious staging failed: ci/runbot on 8aafad5ed7edc56dacfa9876aafebc03e66cd986 (view more at https://runbot.odoo.com/runbot/build/57528719) |
|
@robodoo retry |
|
@Felicious staging failed: ci/runbot on 93ebfd87f13ac41a4528e401af070906a1ec3ee8 (view more at https://runbot.odoo.com/runbot/build/57533470) |
Co-authored-by: Jonathan <[email protected]>
f13c86f to
a2fc9c6
Compare
|
Rebase the PR again, as a sanity check and see if this will merge |
|
@robodoo retry |
|
I'm sorry, @Felicious: retry makes no sense when the PR is not in error. |
|
@robodoo r+ |
|
Hi! It seems you forgot to include some changes in the commit you pushed, at least the ones you marked as resolved for the redirects.txt file. Cheers |
|
Apologies, you are right @Felicious ! I opened the wrong tab and missed one of the forced-pushed changes. Thanks again for your work |
Move the removal strategy docs out of advanced operations and into its own directory.