TIP: You can type at any time to perform a new search.
Sale Order Invoice Date
sale_order_invoice_date · OCA/sale-reporting
Security findings
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `WITH sol AS ( SELECT sol.id AS id, max(move.invoice_date) AS invoice_date FROM sale_order_line_invoice_rel rel INNER JOIN sale_order_line sol ON rel.order_line_id = sol.id INNER JOIN account_move_line aml ON rel.invoice_line_id = aml.id INNER JOIN account_move move ON aml.move_id = move.id WHERE sol.invoice_status = 'invoiced' GROUP BY sol.id ) UPDATE sale_order_line SET invoice_date = sol.invoice_date FROM sol WHERE sale_order_line.id = sol.id` - re-check the table/column names still match after upgrading. migration-raw-sql-write · source
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `WITH so AS ( SELECT so.id AS id, max(sol.invoice_date) AS invoice_date FROM sale_order_line sol INNER JOIN sale_order so ON sol.order_id = so.id WHERE so.invoice_status = 'invoiced' AND sol.invoice_date IS NOT NULL GROUP BY so.id ) UPDATE sale_order SET invoice_date = so.invoice_date FROM so WHERE sale_order.id = so.id` - re-check the table/column names still match after upgrading. migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. No target version is selected: apply version-specific advice only when migrating to that version or later.
- Repository
- OCA/sale-reporting · module folder · Try on Runboat
- Module version
- 1.0.1
- Category
- Sales
- Folder size
- 0.04 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/sale-reporting
- Last tracking update
- 2026-08-07 07:47:47
- Authors
- Camptocamp, Odoo Community Association (OCA)
- Maintainers
- Camptocamp, Odoo Community Association (OCA)
- Committers
- Ivàn Todorovich, Weblate, OCA-git-bot, oca-ci, majouda
Code Analysis
Views touched (1)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_order_product_search |
sale.report | search | Inherits sale.view_order_product_search |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (3)
New fields (1)
-
invoice_dateDatecompute='_compute_invoice_date'store=True
No public methods.
New fields (1)
-
invoice_dateDatecompute='_compute_invoice_date'store=True
No public methods.
New fields (1)
-
invoice_dateDatereadonly=True
No public methods.
- Status
- Open migration PR — not merged yet for this version
- CI status
- green — ready to merge
- Open since
- 175 days ago
- Last activity
- 7 days ago
- Repository
- OCA/sale-reporting
- Pull request
- [19.0][MIG] sale_order_invoice_date (#366)