# A product duplication don't duplicate the "Account Category" value

**URL:** <https://discuss.tryton.org/t/a-product-duplication-dont-duplicate-the-account-category-value/8421>\
**Category:** User\
**Created:** [March 18, 2025, 1:07pm UTC](https://discuss.tryton.org/t/a-product-duplication-dont-duplicate-the-account-category-value/8421 "2025-03-18T13:07:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmn](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/jmn/32/2904_2.png) [@jmn](https://discuss.tryton.org/u/jmn)\
**Post date:** [March 18, 2025, 1:07pm UTC](https://discuss.tryton.org/t/a-product-duplication-dont-duplicate-the-account-category-value/8421/1 "2025-03-18T13:07:07Z")

</div>

Hello,

When you duplicate a product with the field “Account Category” set, the “Account Category” field of the copy is leaved empty.

Is this the correct behaviour?

For me, the copy must have the same “Account Category” field value.

---

<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:** [March 18, 2025, 2:41pm UTC](https://discuss.tryton.org/t/a-product-duplication-dont-duplicate-the-account-category-value/8421/2 "2025-03-18T14:41:31Z")

</div>

If the category is not the default account category then the account category field is cleared (see [Add field access on referential document (7d1e483acac1) · Commits · Tryton / Tryton · GitLab](https://code.tryton.org/tryton/commit/7d1e483acac1)).  
This is because the account category is an accounting parameter that must be reviewed by the accountant. So we do not want non accountant user to be allowed to create new product with a wrong account category.

---

<div class="post-metadata">

**Author:** ![jmn](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/jmn/32/2904_2.png) [@jmn](https://discuss.tryton.org/u/jmn)\
**Post date:** [March 18, 2025, 2:58pm UTC](https://discuss.tryton.org/t/a-product-duplication-dont-duplicate-the-account-category-value/8421/3 "2025-03-18T14:58:20Z")

</div>

> [@ced](#):
>
> This is because the account category is an accounting parameter that must be reviewed by the accountant. So we do not want non accountant user to be allowed to create new product with a wrong account category.

I understand. Thanks.

> [@ced](#):
>
> If the category is not the default account category

Where can I set the default account category?

---

<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:** [March 18, 2025, 4:03pm UTC](https://discuss.tryton.org/t/a-product-duplication-dont-duplicate-the-account-category-value/8421/4 "2025-03-18T16:03:12Z")

</div>

> [@jmn](#):
>
> Where can I set the default account category?

In the [Account Configuration](https://docs.tryton.org/latest/modules-account/design/index.html#configuration).

---

<div class="post-metadata">

**Author:** ![jmn](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/jmn/32/2904_2.png) [@jmn](https://discuss.tryton.org/u/jmn)\
**Post date:** [March 18, 2025, 4:15pm UTC](https://discuss.tryton.org/t/a-product-duplication-dont-duplicate-the-account-category-value/8421/5 "2025-03-18T16:15:32Z")

</div>

> [@ced](#):
>
> In the [Account Configuration](https://docs.tryton.org/latest/modules-account/design/index.html#configuration).

Là?

 ![Configuration-DISTILIBRE](https://discuss-cdn.tryton.org/uploads/default/original/2X/b/b1b409026f71cbb9001c5e02e6def1399f6c90b7.png)

---

<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:** [March 18, 2025, 4:19pm UTC](https://discuss.tryton.org/t/a-product-duplication-dont-duplicate-the-account-category-value/8421/6 "2025-03-18T16:19:28Z")

</div>

Oups this is the default accounts. Indeed there is no default category to configure in standard.

---

<div class="post-metadata">

**Author:** ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)\
**Post date:** [March 19, 2025, 4:20pm UTC](https://discuss.tryton.org/t/a-product-duplication-dont-duplicate-the-account-category-value/8421/7 "2025-03-19T16:20:23Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
