Update tax wizard
account_tax_update · OCA/account-financial-tools
-
Security22/251 minor finding
-
Activity6/25Last human commit 30 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 4 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
SelectTaxes— Class 'SelectTaxes' 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 · sourceSelectTaxes— Class 'SelectTaxes' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceUpdateTaxConfig— Class 'UpdateTaxConfig' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. (2 occurrences in this file) migration-old-api-base · sourceUpdateTaxConfig— Class 'UpdateTaxConfig' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (3 occurrences in this file) migration-old-style-fields · sourceUpdateTaxConfig— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourceaccount_tax— Class 'account_tax' still inherits from the old-style `orm.Model` 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 · sourceaccount_tax— Migrating to 17.0: `name_get` no longer feeds `display_name`: override `_compute_display_name` instead. migration-name-get · sourcetax_tree_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourceupdate_tax_config_form— 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 · sourceupdate_tax_config_line_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · 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.osv`) (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.osv`) 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 aims at assisting the finance manager with implementing a tax increase. Currently, only taxes that apply a percentage are covered.
The module creates a new menu item 'Update tax wizard' in the financial settings menu, under the Taxes submenu. Using the wizard, you can select the sales and purchase taxes that need to be upgraded and assign a new percentage.
The selected taxes are in fact duplicated by running the wizard, so that existing entries in the system are not affected. The new taxes are mapped automatically in the appropriate fiscal positions. The wizard can replace default values on accounts and products on demand. Defaults for purchase and sales taxes can be set at independent times. During the transition, the old taxes can still be selected manually on invoice lines etc.
You can select to also duplicate linked tax code
After the transition, the old taxes can be made inactive.
This module is compatible with OpenERP 7.0
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 |
|---|---|---|---|---|
tax_tree_view |
Tax tree view for the add lines wizard | account.tax | tree | New |
update_tax_config_add_lines_form |
Update tax select taxes form" | account.update.tax.select_taxes | form | New |
update_tax_config_form |
Update tax config form" | account.update.tax.config | form | New |
update_tax_config_line_tree |
Update tax config line tree" | account.update.tax.config.line | tree | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
No new fields.
Public methods (1)-
name_get(self, cr, uid, ids, context=None)
No new fields.
Public methods (4)-
add_lines(self, cr, uid, ids, context=None)Call the wizard that adds configuration lines -
confirm(self, cr, uid, ids, context=None)Set the configuration to confirmed, so that no new taxes can be added. Create the duplicate taxes, rename the legacy taxes and recreate the hierarchical structure. Construct the fiscal position tax mappings. -
set_defaults(self, cr, uid, ids, context=None) -
set_inactive(self, cr, uid, ids, context=None)
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (1)-
save_taxes(self, cr, uid, ids, context=None)Create tax lines in the update tax configuration based on a user selection of taxes. From these taxes, gather their hierarchically related other taxes which need to be duplicated to. From this gathering, ignore any taxes that might have been added by the user earlier on.
Loading…
Loading…
Loading…