Skip to content

[18.0][ADD] pos_order_return_scrap: Add to 18.0#1476

Open
nguyenminhchien wants to merge 4 commits intoOCA:18.0from
nguyenminhchien:18.0-mig-pos_order_return_scrap
Open

[18.0][ADD] pos_order_return_scrap: Add to 18.0#1476
nguyenminhchien wants to merge 4 commits intoOCA:18.0from
nguyenminhchien:18.0-mig-pos_order_return_scrap

Conversation

@nguyenminhchien
Copy link
Contributor

@nguyenminhchien nguyenminhchien commented Jan 23, 2026

This module was initially part of the Foodcoop set of addons. We're now migrating it to 18.0 and taking this occasion to contribute it to OCA.

Dependency:

Features

  • Add a new option "Is Scrap?" to "POS Partial Return Wizard". When checked, the system automatically creates a scrap order for the returned quantities of that product.
image

Use Case

Consider a food cooperative retail store where product quality and inventory accuracy are paramount. A customer purchases fresh produce, dairy products, or packaged goods but later discovers the items are damaged, expired, or unsuitable for consumption.

In traditional return processes, returned items are added back to inventory, which can lead to:

  • Contaminated or damaged goods being inadvertently resold
  • Inventory discrepancies when items must later be manually scrapped
  • Additional handling steps and potential food safety risks

With this module, the cashier can immediately flag the returned items as "Scrap" during the return transaction. The system:

  1. Automatically creates a scrap order, removing the items from sellable inventory
  2. Maintains accurate stock levels and traceability for damaged goods
  3. Ensures food safety compliance by preventing resale of unsuitable products

This streamlined workflow is particularly valuable in:

  • Food cooperatives and grocery stores: Managing returns of perishable goods, damaged packaging, or expired items
  • Retail stores: Handling returns of defective merchandise that cannot be restocked
  • Pharmacies: Processing returns of compromised or opened products
  • Any retail environment: Where product condition directly impacts resale eligibility

The module reduces manual intervention, improves inventory accuracy, and ensures that only sellable products remain in stock.

@legalsylvain
Copy link

Hi. Thanks for jour contribution. Could you provide a use case and take a look on the red CI ?
Thanks.

@nguyenminhchien nguyenminhchien force-pushed the 18.0-mig-pos_order_return_scrap branch 2 times, most recently from 0fa1bbc to 9c68b81 Compare January 26, 2026 03:22
@nguyenminhchien nguyenminhchien force-pushed the 18.0-mig-pos_order_return_scrap branch from 9c68b81 to ffc0a22 Compare January 26, 2026 03:26
@nguyenminhchien nguyenminhchien marked this pull request as ready for review January 26, 2026 03:47
@nguyenminhchien
Copy link
Contributor Author

Hi. Thanks for jour contribution. Could you provide a use case and take a look on the red CI ? Thanks.

Hi, updated.
But the tests were failed because of the same reason with other PRs:
image

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants