Skip to content
Health
55/100
fair
  • Security25/25
    No findings
  • Activity0/25
    Last human commit 121 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 4 Odoo series since 7.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
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.02 MB
Module directory on disk
Code analysis 2 migration notes 1 model 0 views 0 HTTP endpoints

Description

In the core OpenERP purchase module, there is a wizard to merge purchase orders. That feature is convenient, but as soon as a field is added to the purchase order, it does not work anymore and needs to be patched. The original implementation does not provide any hooks for extension, and modules can only reimplement a method completely. This required a lot of copy and paste, and worse, it breaks if two modules attempt to do that.

Therefore, this module reimplements the feature, with the same basic result in the standard case. Hooks are provided for extra modules that add fields or change the logic.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 0

No views found for this module.

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 1

New fields (0)

No new fields.

Public methods (1)
  • do_merge(self, cr, uid, input_order_ids, context=None)
    Merge Purchase Orders. This method replaces the original one in the purchase module because it did not provide any hooks for customization. Receive a list of order ids, and return a dictionary where each element is in the form: new_order_id: [old_order_1_id, old_order_2_id] New orders are created, and old orders are deleted.

Loading…

Loading…

Loading…