TIP: You can type at any time to perform a new search.
Account Fiscal Position - Product
account_fiscal_position_product · OCA/account-fiscal-rule
- Repository
- OCA/account-fiscal-rule · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Accounting
- Folder size
- 0.03 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/account-fiscal-rule/tree/12.0/account_fiscal_position_product
- Last tracking update
- 2026-08-07 07:32:02
- Authors
- Odoo Community Association (OCA), TAKOBI
- Maintainers
- Odoo Community Association (OCA), TAKOBI
- Committers
- Simone Rubino, OCA-git-bot, oca-ci
Code Analysis ⓘ
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.