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
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
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.model
    If 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_ids Many2many → product.category
    comodel_name='product.category' string='Product Categories'
  • product_ids Many2many → product.product
    comodel_name='product.product' string='Products'
Public methods (3)
  • is_product_tax_mapping(self)
    @api.multi
    True 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.multi
    Return 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.