Account Fiscal Position - Product
account_fiscal_position_product · OCA/account-fiscal-rule
Health
35/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 39 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 12.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.03 MB
Module directory on disk
Code analysis
1 migration note
2 models
1 view
0 HTTP endpoints
Migration considerations
AccountFiscalPositionTax— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (2 methods) migration-api-multi-one · 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_account_position_form |
Add Product to Fiscal Position form view | account.fiscal.position | form | Inherits account.view_account_position_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
New fields (0)
No new fields.
Public methods (2)-
is_product_fiscal_position(self)True if any tax mapping in `self.tax_ids` has a product or a product category. -
map_tax(self, taxes, product=None, partner=None)@api.modelIf this is a product fiscal position, only apply tax mappings matching `product`. Otherwise, return the usual mapping (defined in `super`).
New fields (2)
-
product_category_idsMany2many → product.categorycomodel_name='product.category'string='Product Categories' -
product_idsMany2many → product.productcomodel_name='product.product'string='Products'
-
is_product_tax_mapping(self)@api.multiTrue if any tax mapping in `self` has a product or a product category. -
map_taxes(self, taxes)Map each tax in `taxes` using mappings in `self`. When a tax matches `tax_src_id`, then `tax_dest_id` is its mapped tax, otherwise the tax is mapped to itself. -
match_product(self, product)@api.multiReturn the first mapping in `self` that matches `product`. A mapping matches `product` when `product` is declared in the mapping, or when its category is declared in the mapping.