TIP: You can type at any time to perform a new search.
Stock Return Request
stock_return_request · OCA/stock-logistics-request
- Repository
- OCA/stock-logistics-request · module folder · Try on Runboat
- Module version
- 1.0.2
- Category
- Stock
- Folder size
- 0.27 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/stock-logistics-request
- Last tracking update
- 2026-08-07 08:43:06
- Authors
- Odoo Community Association (OCA), Tecnativa
- Maintainers
- Odoo Community Association (OCA), Tecnativa
- Committers
- Carlos Lopez, Carlos Roca, Weblate, OCA-git-bot, oca-ci, Joan Sisquella
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- sale_stock_return_request
- Description
This module allows to return stock from a location to either suppliers, customers or internal locations reverting the corresponding pickings.
Code Analysis ⓘ
Views touched (6)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
report_stock_return_request |
report_stock_return_request | ir.ui.view | qweb | New |
report_stock_return_request_document |
report_stock_return_request_document | ir.ui.view | qweb | New |
stock_move_lines_to_return |
stock_move_lines_to_return | ir.ui.view | qweb | New |
stock_return_request_line_suggest_lot |
Suggested Lots for this Return Request Line | suggest.return.request.lot | form | New |
view_stock_return_request_form |
stock.return.request | form | New | |
view_stock_return_request_tree |
stock.return.request | list | New |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (6)
New fields (1)
-
qty_returnableFloatcompute='_compute_qty_returnable'digits='Product Unit of Measure'string='Returnable Quantity'
No public methods.
New fields (1)
-
stock_return_request_idMany2one → stock.return.requestcomodel_name='stock.return.request'
No public methods.
New fields (14)
-
from_dateDatestring='Search moves up to this date' -
line_idsOne2many → stock.return.request.linecomodel_name='stock.return.request.line'copy=Trueinverse_name='request_id'string='Stock Return' -
nameCharcopy=Falsedefault=<expr>readonly=Truerequired=True args: 'Reference' -
noteTexthelp='They will be visible on the report'string='Comments' -
partner_idMany2one → res.partnercomodel_name='res.partner' -
picking_typesMany2many → stock.picking.typecomodel_name='stock.picking.type'help='Restrict operation types to search for'string='Operation types' -
return_from_locationMany2one → stock.locationcomodel_name='stock.location'domain='[("usage", "=", "internal")]'help='Return from this location'required=Truestring='Return from' -
return_orderSelectiondefault='date desc, id desc'help='The returns will be performed searching moves in the given order.'required=Trueselection=[('date desc, id desc', 'Newer first'), ('date asc, id desc', 'Older first')] -
return_to_locationMany2one → stock.locationcomodel_name='stock.location'domain='[("usage", "=", "internal")]'help='Return to this location'required=Truestring='Return to' -
return_typeSelectionhelp='Supplier - Search for incoming moves from this supplier\nCustomer - Search for outgoing moves to this customer\nInternal - Search for outgoing moves to this location.'required=Trueselection=[('supplier', 'Return to Supplier'), ('customer', 'Return from Customer'), ('internal', 'Return to Internal location')] -
returned_picking_idsOne2many → stock.pickingcomodel_name='stock.picking'copy=Falseinverse_name='stock_return_request_id'readonly=Truestring='Returned Pickings' -
show_to_refundBooleancompute='_compute_show_to_refund'help='Whether to show it or not depending on the availability ofthe stock_account module (so a bridge module is not necessary)' -
stateSelectioncopy=Falsedefault='draft'readonly=Trueselection=[('draft', 'Open'), ('confirmed', 'Confirmed'), ('done', 'Done'), ('cancel', 'Cancelled')]tracking=True -
to_refundBoolean
-
action_cancel(self)Cancel request and the associated pickings. We can set it to draft again. -
action_cancel_to_draft(self)Set to draft again -
action_confirm(self)Get moves and then try to reserve quantities. Fail if the quantites can't be assigned -
action_validate(self) -
action_view_pickings(self)Display returned pickings -
create(self, vals_list)@api.model_create_multi -
do_print_return_request(self) -
onchange_locations(self)@api.onchange('return_type', 'partner_id')UI helpers to determine locations
New fields (8)
-
lot_idMany2one → stock.lotcomodel_name='stock.lot'domain="[('product_id', '=', product_id)]"string='Lot / Serial' -
max_quantityFloatcompute='_compute_max_quantity'digits='Product Unit of Measure'string='Maximum available quantity' -
product_idMany2one → product.productcomodel_name='product.product'domain=[('is_storable', '=', True)]required=Truestring='Product' -
product_uom_idMany2one → uom.uomcomodel_name='uom.uom'readonly=Truerelated='product_id.uom_id' -
quantityFloatdigits='Product Unit of Measure'required=Truestring='Quantiy to return' -
request_idMany2one → stock.return.requestcomodel_name='stock.return.request'ondelete='cascade'readonly=Truerequired=Truestring='Return Request' -
returnable_move_idsMany2many → stock.movecomodel_name='stock.move'copy=Falsereadonly=Truestring='Returnable Move Lines' -
trackingSelectionreadonly=Truerelated='product_id.tracking'
-
action_lot_suggestion(self) -
create(self, vals_list)@api.model_create_multi
New fields (3)
-
lot_suggestion_modeSelectiondefault='sum'selection=[('sum', 'Total by lot'), ('detail', 'Total by move')] -
request_line_idMany2one → stock.return.request.linecomodel_name='stock.return.request.line'ondelete='cascade'readonly=Truerequired=True -
suggested_lot_idMany2one → suggest.return.request.lot.lineargs: 'suggest.return.request.lot.line'
-
action_confirm(self)
New fields (4)
-
lot_idMany2one → stock.lotcomodel_name='stock.lot' -
lot_suggestion_modeSelectionselection=[('sum', 'Total by lot'), ('detail', 'Total by move')] -
nameChar -
wizard_idMany2one → suggest.return.request.lotcomodel_name='suggest.return.request.lot'ondelete='cascade'
No public methods.
- Status
- Open migration PR — not merged yet for this version
- CI status
- checks failing
- Open since
- 78 days ago
- Last activity
- 20 days ago
- Repository
- OCA/stock-logistics-request
- Pull request
- [19.0][MIG] stock_return_request: Migration to 19.0 (#95)