# Solution to manage tax identifier types

**URL:** https://discuss.tryton.org/t/solution-to-manage-tax-identifier-types/723
**Category:** Feature
**Tags:** accounting
**Created:** [September 12, 2018, 6:24am UTC](https://discuss.tryton.org/t/solution-to-manage-tax-identifier-types/723 "2018-09-12T06:24:44Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![vincent](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/vincent/32/29_2.png) [@vincent](https://discuss.tryton.org/u/vincent)
#### Post date: [September 12, 2018, 6:24am UTC](https://discuss.tryton.org/t/solution-to-manage-tax-identifier-types/723/1 "2018-09-12T06:24:44Z")

</div>

All tax identifier types should be made available to the user. There was some [discussion](https://discuss.tryton.org/t/localisation-module-for-tax-identifier-australia/573) about this problem.

One solution could be to allow the administrator to select tax identifier types during the party configuration to be made available to the user and store “enabled” identifier types in a model.

---

<div class="post-metadata">

### Author: ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)
#### Post date: [September 12, 2018, 8:26am UTC](https://discuss.tryton.org/t/solution-to-manage-tax-identifier-types/723/2 "2018-09-12T08:26:34Z")

</div>

One option is to include a multiselection widged on the accounting configuration to allow to select the identifier types that will be used as tax identifier, which will allow to remove [the currrent hardcoded value](http://hg.tryton.org/modules/account_invoice/file/9fb367c67d6f/invoice.py#l1038).

---

<div class="post-metadata">

### Author: ![vincent](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/vincent/32/29_2.png) [@vincent](https://discuss.tryton.org/u/vincent)
#### Post date: [September 13, 2018, 5:37am UTC](https://discuss.tryton.org/t/solution-to-manage-tax-identifier-types/723/3 "2018-09-13T05:37:23Z")

</div>

oh it’s hardcoded in 2 places. @ced has pointed out in the [party](http://hg.tryton.org/modules/party/file/tip/party.py#l129) module too

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [December 6, 2018, 6:22pm UTC](https://discuss.tryton.org/t/solution-to-manage-tax-identifier-types/723/4 "2018-12-06T18:22:02Z")

</div>

I have implemented all available identifier in python-stdnum: [Include all identifier from python-stdnum (#7906) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/issue7906)  
I also set some as tax identifier (those referenced by python-stdnum as vat).

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [December 7, 2018, 8:11am UTC](https://discuss.tryton.org/t/solution-to-manage-tax-identifier-types/723/5 "2018-12-07T08:11:59Z")

</div>

It will be great if everyone could check that for the countries they know, it is correct to use the selected identifiers.

---

<div class="post-metadata">

### Author: ![lukio](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/lukio/32/98_2.png) [@lukio](https://discuss.tryton.org/u/lukio)
#### Post date: [April 12, 2019, 2:03pm UTC](https://discuss.tryton.org/t/solution-to-manage-tax-identifier-types/723/6 "2019-04-12T14:03:05Z")

</div>

Hi @ced, I’m wondering if it would be nice to also have the tax identifier format inside the identifier model. Something [similar as iban field](http://hg.tryton.org/modules/bank/file/tip/bank.py#l106) at Bank module.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [August 8, 2020, 10:32am UTC](https://discuss.tryton.org/t/solution-to-manage-tax-identifier-types/723/7 "2020-08-08T10:32:31Z")

</div>


