Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 2 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 11 Odoo series since 6.1

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.43 MB
Module directory on disk
Code analysis 0 migration notes 2 models 1 view 0 HTTP endpoints

Description

This module adds an action in the invoices list to merge invoices. Here are the conditions to allow merging:

  • Type should be the same (Customer Invoice, Supplier Invoice, Customer Refund or Supplier Refund)
  • Partner should be the same
  • Currency should be the same
  • Account receivable account should be the same

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 1

XML IDNameModelTypeStatus
view_invoice_merge Merger Partner Invoice invoice.merge form New

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 2

New fields (0)

No new fields.

Public methods (4)
  • do_merge(self, keep_references=True, date_invoice=False, remove_empty_invoice_lines=True)
    To merge similar type of account invoices. Invoices will only be merged if: * Account invoices are in draft * Account invoices belong to the same partner * Account invoices are have same company, partner, address, currency, journal, currency, salesman, account, type Lines will only be merged if: * Invoice lines are exactly the same except for the quantity and unit @param self: The object pointer. @param keep_references: If True, keep reference of original invoices @return: new account invoice id
  • make_key(self, br, fields)
    Return a hashable key
  • merge_callback(self, invoices_info, old_invoices)
    @api.model
  • order_line_update_invoice_lines(todos, all_old_inv_line)
    @staticmethod

New fields (3)
  • date_invoice Date
    string='Invoice Date'
  • error_message Text
  • keep_references Boolean
    default=True string='Keep references from original invoices'
Public methods (2)
  • default_get(self, default_fields)
    @api.model
    If we're creating a new account through a many2one, there are chances that we typed the account code instead of its name. In that case, switch both fields values.
  • merge_invoices(self)
    To merge similar type of account invoices. @param self: The object pointer. @return: account invoice action

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…