Move in draft state by default
account_default_draft_move · OCA/account-financial-tools
Health
65/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 102 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 5 Odoo series since 6.1
Heuristic over the facts below, not an audit · How it's computed
Required by
1
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.11 MB
Module directory on disk
Code analysis
9 migration notes
5 models
4 views
0 HTTP endpoints
Migration considerations
AccountBankStatement— 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 · sourceAccountConfigSettings— Class 'AccountConfigSettings' 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 · sourceAccountConfigSettings— Class 'AccountConfigSettings' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceAccountInvoice— 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) (2 occurrences in this file) migration-api-multi-one · sourceinvoice_form_supplier_group_invoice— 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. migration-view-attrs-states · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (2 occurrences in this file) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (2 occurrences in this file) migration-openerp-import · source
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE account_move SET state=%s WHERE id IN %s` - 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 4
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
invoice_form_customer_group_invoice |
Show Cancel invoice button customer | account.invoice | form | Inherits account.invoice_form |
invoice_form_supplier_group_invoice |
Show Cancel invoice button supplier | account.invoice | form | Inherits account.invoice_supplier_form |
view_account_config_settings |
account.config.settings.inherit | account.config.settings | Inherits account.view_account_config_settings | |
view_move_form_remove_button |
account.move.form.remove.button | account.move | form | Inherits account.view_move_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 5
New fields (0)
No new fields.
Public methods (1)-
button_confirm_bank(self)@api.multi
New fields (0)
No new fields.
Public methods (2)-
default_get(self, cr, uid, fields, context=None) -
set_parameters(self, cr, uid, ids, context=None)
New fields (0)
No new fields.
Public methods (1)-
action_move_create(self)@api.multiSet move line in draft state after creating them.
New fields (1)
-
entry_postedBooleanhelp="Check this box if you don't want new journal entries\nto pass through the 'draft' state and instead goes directly\nto the 'posted state' without any manual validation."string="Skip 'Draft' State"
No public methods.
New fields (1)
-
update_postedBooleancompute='_is_update_posted'string='Allow Cancelling Entries'
-
button_cancel(self)@api.multiWe rewrite function button_cancel, to allow invoice or bank statement with linked draft moved to be canceled
Loading…
Loading…
Loading…
Loading…