Account Fiscal Position - Product

account_fiscal_position_product
REPOSITORY
REPOSITORYOCA/account-fiscal-rule
GIT
GIThttps://github.com/OCA/account-fiscal-rule.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-fiscal-rule/tree/12.0/account_fiscal_position_product
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYAccounting
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), TAKOBI
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), TAKOBI
COMMITTERS
COMMITTERSOCA-git-bot, Simone Rubino, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/account-fiscal-rule/tree/12.0/account_fiscal_position_product
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:15
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - http_routing
    - digest
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_account_position_form Add Product to Fiscal Position form view account.fiscal.position xpath Inherits account.view_account_position_form
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.