Add "To Send" and "To Validate" states in Invoices
account_invoice_validation_workflow · OCA/account-invoicing
Replaces
invoice_validation_wkfl (8.0) Health
48/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 102 months ago
-
Required by5/250 modules depend on it
-
Maturity18/25In 3 Odoo series since 8.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.06 MB
Module directory on disk
Code analysis
5 migration notes
2 models
3 views
0 HTTP endpoints
Migration considerations
- Migrating to 11.0: the workflow engine (`trg_validate`) was removed: rewrite as state-field transitions. (3 occurrences in this file) migration-workflow-call · source
AccountInvoice— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourceAccountInvoiceRefund— Class 'AccountInvoiceRefund' still inherits from the old-style `orm.TransientModel` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceinvoice_supplier_form_validation_wkfl— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. (2 occurrences in this file) migration-view-attrs-states · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (5 occurrences in this file) migration-openerp-import · 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
This module adds 2 states between draft and open state in invoices:
- To Validate: For invoices which need a validation
- To Send: For all invoices that need to be sent
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
invoice_form_validation_wkfl |
account.invoice.form.validation.wkfl | account.invoice | form | Inherits account.invoice_form |
invoice_supplier_form_validation_wkfl |
account.invoice.supplier.form.validation.wkfl | account.invoice | form | Inherits account.invoice_supplier_form |
view_account_invoice_filter |
account.invoice.valid_wkf.select | account.invoice | Inherits account.view_account_invoice_filter |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
New fields (1)
-
stateSelectionreadonly=Trueselect=True args: [('draft', 'Draft'), ('to_send', 'To Send'), ('to_valid', 'To Validate'), ('proforma2', 'Pro-forma'), ('open', 'Open'), ('paid', 'Paid'), ('cancel', 'Canceled')], 'State'
-
action_to_valid(self)@api.multiCheck if analytic account of each lines is not closed
New fields (0)
No new fields.
Public methods (1)-
compute_refund(self, cr, uid, ids, mode='refund', context=None)@param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: the account invoice refund’s ID or list of IDs
Loading…
Loading…