Skip to content

[18.0][MIG] sale_order_restrict _copy_archived_product: Migration to 18.0#4158

Open
Anxo82 wants to merge 17 commits intoOCA:18.0from
sygel-technology:18.0-mig-sale_order_restrict_copy_archived_product
Open

[18.0][MIG] sale_order_restrict _copy_archived_product: Migration to 18.0#4158
Anxo82 wants to merge 17 commits intoOCA:18.0from
sygel-technology:18.0-mig-sale_order_restrict_copy_archived_product

Conversation

@Anxo82
Copy link
Contributor

@Anxo82 Anxo82 commented Feb 17, 2026

@HaraldPanten

  • [T-9321]

@Anxo82 Anxo82 marked this pull request as draft February 17, 2026 11:59
Copy link
Contributor

@Jaimermaccione Jaimermaccione left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Anxo82 Module reviewed on Runboat.


Tests Performed

1. Quotation with Archived Product
  • Attempted to duplicate a quotation containing an archived product.
  • Result: Duplication is correctly blocked.
  • A validation message clearly indicates the archived product.
2. Confirmed Sales Order with Archived Product
  • Attempted to duplicate a confirmed sales order containing an archived product.
  • Result: Duplication is correctly blocked.
3. Archived Product Variants
  • If the sales order contains the archived variant → duplication is blocked.
  • If the sales order contains a different active variant of the same product template → duplication is allowed.
4. Sections and Notes
  • Sections and note lines do not affect the validation.
  • They do not trigger any blocking behavior.
5. Reactivated Product
  • If the archived product is reactivated, duplication is allowed again as expected.
6. Different Product Types
  • Tested with stockable products and services.
  • Result: Duplication is correctly blocked in both cases when the product is archived.

Conclusion

The module behaves consistently according to its intended functional scope.
LGTM!

Copy link
Contributor

@ValentinVinagre ValentinVinagre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏻

@Anxo82 Anxo82 marked this pull request as ready for review February 18, 2026 14:23
@Anxo82
Copy link
Contributor Author

Anxo82 commented Feb 19, 2026

@HaraldPanten Could you please review it and, if you agree, merge it?
Thanks

Copy link
Contributor

@HaraldPanten HaraldPanten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ocabot migration sale_order_restrict _copy_archived_product
/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

Hi @HaraldPanten. Your command failed:

Invalid options for command migration: sale_order_restrict _copy_archived_product.

Ocabot commands

  • ocabot merge major|minor|patch|nobump
  • ocabot rebase
  • ocabot migration {MODULE_NAME}

More information

@HaraldPanten
Copy link
Contributor

/ocabot migration sale_order_restrict_copy_archived_product
/ocabot merge nobump

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone Feb 19, 2026
@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 18.0-ocabot-merge-pr-4158-by-HaraldPanten-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Feb 19, 2026
Signed-off-by HaraldPanten
@OCA-git-bot
Copy link
Contributor

@HaraldPanten your merge command was aborted due to failed check(s), which you can inspect on this commit of 18.0-ocabot-merge-pr-4158-by-HaraldPanten-bump-nobump.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@Anxo82 Anxo82 force-pushed the 18.0-mig-sale_order_restrict_copy_archived_product branch from c4af6ef to d92a80e Compare February 19, 2026 14:53
victoralmau and others added 6 commits February 25, 2026 10:10
With the changes introduced in odoo/odoo@de056cc#diff-b37c7fd5520c97a29ddc59495779e7be61a66e15e85603928e27b3affb9dc31f, an error was occurring because the change validation on the model was being performed before tearDownClass was executed. Therefore, it has been modified so that the mock changes are applied in each test and cleaned up after each test. This way, the error will no longer appear and the test will run normally.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-18.0/sale-workflow-18.0-sale_elaboration
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-18-0/sale-workflow-18-0-sale_elaboration/
epanisset and others added 4 commits February 25, 2026 10:10
Currently translated at 4.2% (2 of 47 strings)

Translation: sale-workflow-18.0/sale-workflow-18.0-sale_manual_delivery
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-18-0/sale-workflow-18-0-sale_manual_delivery/fr/
Currently translated at 94.4% (17 of 18 strings)

Translation: sale-workflow-18.0/sale-workflow-18.0-sale_order_line_menu
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-18-0/sale-workflow-18-0-sale_order_line_menu/ja/
@Anxo82
Copy link
Contributor Author

Anxo82 commented Feb 25, 2026

@HaraldPanten The branch has been rebased on the latest target branch. Could you please try merging again?
Thanks

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@HaraldPanten
Copy link
Contributor

@HaraldPanten The branch has been rebased on the latest target branch. Could you please try merging again? Thanks

@Anxo82 I think we still have conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.