Added in version 0.2.4.
This page documents how to use the manager and record objects for fiscal position tax mappings.
| Name | Value |
|---|---|
| Odoo Modules | Accounting |
| Odoo Model Name | account.fiscal.position.tax |
| Manager | fiscal_position_tax_mappings |
| Record Type | FiscalPositionTaxMapping |
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.
The fiscal position tax mapping manager returns FiscalPositionTaxMapping record objects.
To import the record class for type hinting purposes:
from openstack_odooclient import FiscalPositionTaxMappingThe 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: intThe ID for the company this fiscal position tax mapping is associated with.
company_name: strThe name of the company this fiscal position tax mapping is associated with.
company: CompanyThe 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: intThe ID for the fiscal position this mapping is part of.
position_name: strThe name of the fiscal position this mapping is part of.
position: FiscalPositionThe fiscal position this mapping is part of.
This fetches the full record from Odoo once, and caches it for subsequent accesses.
tax_src_id: intThe ID of the tax to be overridden on products.
tax_src_name: strThe name of the tax to be overridden on products.
tax_src: TaxThe tax to be overridden on products.
This fetches the full record from Odoo once, and caches it for subsequent accesses.
tax_dest_id: int | NoneThe ID of the tax to override the source tax with, if set.
tax_dest_name: str | NoneThe name of the tax to override the source tax with, if set.
tax_dest: Tax | NoneThe tax to override the source tax with, if set.
This fetches the full record from Odoo once, and caches it for subsequent accesses.