Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Inventory
Entity: stock.move
Compute Method: _compute_display_assign_serial
| Inputs | Method | Outputs |
|---|---|---|
|
for move in self:
move.display_import_lot = (
move.has_tracking != 'none' and
move.product_id and
move.picking_type_id.use_create_lots and
not move.origin_returned_move_id.id and
move.state not in ('done', 'cancel')
)
- move.display_assign_serial = move.has_tracking == 'serial' and move.display_import_lot
+ move.display_assign_serial = move.display_import_lot
|
|
