Skip to content
Health
35/100
poor
  • Security25/25
    No findings
  • Activity0/25
    Last human commit 39 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 12.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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

Description

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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.