Account Invoice Merge
account_invoice_merge · OCA/account-invoicing
Health
80/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 2 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 11 Odoo series since 6.1
Heuristic over the facts below, not an audit · How it's computed
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
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_invoiceDatestring='Invoice Date' -
error_messageText -
keep_referencesBooleandefault=Truestring='Keep references from original invoices'
-
default_get(self, default_fields)@api.modelIf 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…