Partner Last Invoice Date
partner_last_invoice_date · OCA/account-invoicing
Health
55/100
fair
-
Security25/25No findings
-
Activity20/25Last human commit 11 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 16.0
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.04 MB
Module directory on disk
Code analysis
1 migration note
1 model
1 view
0 HTTP endpoints
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `WITH RECURSIVE partner_tree AS ( SELECT id, id AS root_id FROM res_partner UNION ALL SELECT child.id, partner_tree.root_id FROM res_partner AS child JOIN partner_tree ON child.parent_id = partner_tree.id ) UPDATE res_partner p SET last_invoice_date = sub.max_inv_date, last_bill_date = sub.max_bill_date FROM ( SELECT pt.root_id AS partner_id, MAX( CASE WHEN am.move_type IN ('out_invoice', 'out_refund') THEN am.invoice_date ELSE NULL END ) AS max_inv_date, MAX( CASE WHEN am.move_type IN ('in_invoice', 'in_refund') THEN am.invoice_date ELSE NULL END ) AS max_bill_date FROM partner_tree pt JOIN account_move am ON am.partner_id = pt.id WHERE am.state = 'posted' AND am.invoice_date IS NOT NULL GROUP BY pt.root_id ) sub WHERE p.id = sub.partner_id` - re-check the table/column names still match after upgrading. migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
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_partner_property_form |
view_partner_property_form_partner_last_invoice_date | res.partner | form | Inherits account.view_partner_property_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 1
New fields (2)
-
last_bill_dateDatecompute='_compute_last_invoice_bill_date'recursive=Truestore=True -
last_invoice_dateDatecompute='_compute_last_invoice_bill_date'recursive=Truestore=True
No public methods.