Skip to content

Fiscal Position Tax Mappings

Added in version 0.2.4.

This page documents how to use the manager and record objects for fiscal position tax mappings.

Details

Name Value
Odoo Modules Accounting
Odoo Model Name account.fiscal.position.tax
Manager fiscal_position_tax_mappings
Record Type FiscalPositionTaxMapping

Manager

The fiscal position tax mapping manager is available as the fiscal_position_tax_mappings attribute on the Odoo client object.

>>> from openstack_odooclient import Client as OdooClient
>>> odoo_client = OdooClient(
...     hostname="localhost",
...     port=8069,
...     protocol="jsonrpc",
...     database="odoodb",
...     user="test-user",
...     password="<password>",
... )
>>> odoo_client.fiscal_position_tax_mappings.get(1234)
FiscalPositionTaxMapping(record={'id': 1234, ...}, fields=None)

For more information on how to use managers, refer to Managers.

Record

The fiscal position tax mapping manager returns FiscalPositionTaxMapping record objects.

To import the record class for type hinting purposes:

from openstack_odooclient import FiscalPositionTaxMapping

The record class currently implements the following fields and methods.

For more information on attributes and methods common to all record types, see Record Attributes and Methods.

company_id

company_id: int

The ID for the company this fiscal position tax mapping is associated with.

company_name

company_name: str

The name of the company this fiscal position tax mapping is associated with.

company

company: Company

The company this fiscal position tax mapping is associated with.

This fetches the full record from Odoo once, and caches it for subsequent accesses.

position_id

position_id: int

The ID for the fiscal position this mapping is part of.

position_name

position_name: str

The name of the fiscal position this mapping is part of.

position

position: FiscalPosition

The fiscal position this mapping is part of.

This fetches the full record from Odoo once, and caches it for subsequent accesses.

tax_src_id

tax_src_id: int

The ID of the tax to be overridden on products.

tax_src_name

tax_src_name: str

The name of the tax to be overridden on products.

tax_src

tax_src: Tax

The tax to be overridden on products.

This fetches the full record from Odoo once, and caches it for subsequent accesses.

tax_dest_id

tax_dest_id: int | None

The ID of the tax to override the source tax with, if set.

tax_dest_name

tax_dest_name: str | None

The name of the tax to override the source tax with, if set.

tax_dest

tax_dest: Tax | None

The tax to override the source tax with, if set.

This fetches the full record from Odoo once, and caches it for subsequent accesses.