Repository
OCA/sale-workflow · module folder · Try on Runboat
Module version
1.0.0
Category
Uncategorized
Folder size
0.04 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/sale-workflow
Last tracking update
2026-08-07 08:42:48
Authors
ACSONE SA/NV, Odoo Community Association (OCA)
Maintainers
ACSONE SA/NV, Odoo Community Association (OCA)
Committers
Marie Lejeune, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
sale_purchase_force_vendor
Description
This module defines a technical field to store the related sale order
line on stock move level in order to get all chained moves on sale order
line side.

In case the stock move contains multiple lines of the same product,
Odoo's default behaviour is to merge those lines into the same one.

With this module, there is the option of preserving one move for each
sale order line, which enables correct tracing of each move back to its
source.

Each stock rule can define how the moves it creates should behave. If at
least one move in the chain of moves is set to preserve one move per
sale order line, all moves in the chain will act accordingly.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_stock_rule_form stock.rule.form stock.rule form Inherits stock.view_stock_rule_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (1)
  • chained_move_ids One2many → stock.move
    comodel_name='stock.move' inverse_name='related_sale_line_id'
Public methods (0)

No public methods.

New fields (1)
  • related_sale_line_id Many2one → sale.order.line
    comodel_name='sale.order.line' index=True
Public methods (0)

No public methods.

New fields (1)
  • preserve_separate_so_lines Boolean
    default=False help="Prevents Odoo's default behaviour of merging moves with the same product." string='Preserve Separate Sale Order Lines'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
checks failing
Open since
29 days ago
Last activity
29 days ago
Repository
OCA/sale-workflow
Pull request
[19.0] [MIG] sale_order_line_chained_move : Migration to 19.0 (#4487)