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:
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¶
The ID for the company this fiscal position tax mapping is associated with.
company_name¶
The name of the company this fiscal position tax mapping is associated with.
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¶
The ID for the fiscal position this mapping is part of.
position_name¶
The name of the fiscal position this mapping is part of.
position¶
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¶
The ID of the tax to be overridden on products.
tax_src_name¶
The name of the tax to be overridden on products.
tax_src¶
The tax to be overridden on products.
This fetches the full record from Odoo once, and caches it for subsequent accesses.
tax_dest_id¶
The ID of the tax to override the source tax with, if set.
tax_dest_name¶
The name of the tax to override the source tax with, if set.
tax_dest¶
The tax to override the source tax with, if set.
This fetches the full record from Odoo once, and caches it for subsequent accesses.