Stock Return Request
stock_return_request · OCA/stock-logistics-request
OCA/stock-logistics-workflow 11.0–15.0 → OCA/stock-logistics-request 18.0
Health
90/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 5 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 6 Odoo series since 11.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.3 MB
Module directory on disk
Code analysis
0 migration notes
6 models
6 views
0 HTTP endpoints
Description
This module allows to return stock from a location to either suppliers, customers or internal locations reverting the corresponding pickings.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
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.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…