Repository
OCA/sale-workflow · module folder · Try on Runboat
Module version
1.0.0
Category
Sales Management
Folder size
0.26 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/oca/sale-workflow
Last tracking update
2026-08-07 07:03:04
Authors
Odoo Community Association (OCA), Opener B.V.
Maintainers
Odoo Community Association (OCA), Opener B.V.
Committers
Jordi Ballester Alomar, Weblate, OCA Transbot, OCA-git-bot, oca-travis
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
sale_order_form Add merge button to sale order form sale.order form Inherits sale.view_order_form
view_sale_order_merge_form sale.order.merge form New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (2)
  • merge_ok Boolean
    compute='_compute_merge_ok' args: 'Has candidates to merge with'
  • merge_with Many2many → sale.order
    comodel_name='sale.order' compute='_compute_merge_with' search='_search_merge_with' string='Can be merged with'
Public methods (1)
  • button_merge(self)
    @api.multi

New fields (3)
  • mergeable Many2many → sale.order
    comodel_name='sale.order' related='sale_order.merge_with'
  • sale_order Many2one → sale.order
    readonly=True required=True args: 'sale.order', 'Merge into'
  • to_merge Many2many → sale.order
    args: 'sale.order', 'rel_sale_to_merge', 'sale_id', 'to_merge_id', 'Orders to merge'
Public methods (5)
  • merge(self)
    @api.multi
    If not all orders have the same policy: If not all confirmed orders have the same policy: raise Set the policy to the policy of the confirmed order(s) If there is one confirmed order, confirm all other orders. For prepaid orders, this will generate draft invoices.
  • merge_invoices(self)
    @api.multi
    Merge all draft invoices. For prepaid orders, the payment of the original invoice is leading to start the procurement, but there may still be other confirmed invoices.
  • merge_order_lines(self)
    @api.multi
  • merge_pickings(self)
    @api.multi
    Assign all pickings to the target sale order and merge any pending pickings
  • open_sale(self)
    @api.multi
Status
Open migration PR — not merged yet for this version
CI status
checks failing
Open since
336 days ago
Last activity
52 days ago
Repository
OCA/sale-workflow
Pull request
[17.0][MIG] sale_order_merge (#3904)