[19.0][MIG] pos_sale_picking_keep#2
Merged
Conversation
Currently translated at 100.0% (3 of 3 strings) Translation: pos-19.0/pos-19.0-pos_partner_birthdate Translate-URL: https://translation.odoo-community.org/projects/pos-19-0/pos-19-0-pos_partner_birthdate/de/
Currently translated at 100.0% (16 of 16 strings) Translation: pos-19.0/pos-19.0-pos_edit_order_line Translate-URL: https://translation.odoo-community.org/projects/pos-19-0/pos-19-0-pos_edit_order_line/de/
This module inhibits the manipulation that the point of sale mades over the sales orders pickings, and the creation of new pickings under the PoS picking type. Use Cases / Context =================== In some scenarios, you may not want that the point of sale (PoS) handles the pickings of the products you are paying: - Using the PoS as a pure payment terminal. - When complex stock flows are not supplied by the PoS. In that cases, it's better to keep the original sales pickings.
Currently translated at 100.0% (3 of 3 strings) Translation: pos-18.0/pos-18.0-pos_sale_picking_keep Translate-URL: https://translation.odoo-community.org/projects/pos-18-0/pos-18-0-pos_sale_picking_keep/it/
If you have previously sync a `pos.order` (for example, because you have gone to backend with an opened order), and later you do things like unlinking an existing line, you may find other kind of commands in `lines` dictionary like `(2, <id>)`, making the code of this module to crash, so let's protect it properly.
Available types: 'task#', 't#' (case insensitive) Examples:
|
- Bump manifest version to 19.0.1.0.0. - Add sale_stock dependency: pos_sale loads sale.order.picking_ids in the PoS data, a field provided by sale_stock. It is auto_install so it is normally present, but it is not pulled in the minimal CI install, which made the PoS fail to load with 'Invalid field picking_ids on sale.order'. The module also operates on the sale order stock moves/pickings, so the dependency is required. - Update the PoS test tour imports to the new 19.0 paths (tests/pos/tours/utils and generic_helpers). - Grant the sales user group in tests, as point_of_sale.group_pos_manager no longer implies sales rights and the onchange now checks create access. - Use f-strings for the tour URLs (ruff UP031). - Add CONTRIBUTORS and regenerate README.
3fae09a to
c262e7f
Compare
Available types: 'task#', 't#' (case insensitive) Examples:
|
1 similar comment
Available types: 'task#', 't#' (case insensitive) Examples:
|
Available types: 'task#', 't#' (case insensitive) Examples:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migration of
pos_sale_picking_keepfrom 18.0 to 19.0 (based onOCA/pos:19.0).Migration changes
19.0.1.0.0.sale_stockdependency:pos_saleloadssale.order.picking_idsin the PoS data, a field provided bysale_stock. It isauto_installso it is normally present, but it is not pulled in the minimal CI install, which made the PoS fail to load withInvalid field 'picking_ids' on 'sale.order'. The module also operates on the sale order stock moves/pickings, so the dependency is required.tests/pos/tours/utils/*andtests/generic_helpers/dialog_util).sales_team.group_sale_salesmanin the test setup: in 19.0point_of_sale.group_pos_managerno longer implies sales rights and the webonchangenow checkscreateaccess, so creating the sale order raisedAccessError.ruffUP031).readme/CONTRIBUTORS.mdand regenerate the README.Both PoS tours pass. Upstream PR: OCA#1576.