# Increase number of digits in products price - reloaded

**URL:** https://discuss.tryton.org/t/increase-number-of-digits-in-products-price-reloaded/6158
**Category:** System Administrator
**Created:** [May 17, 2023, 2:10pm UTC](https://discuss.tryton.org/t/increase-number-of-digits-in-products-price-reloaded/6158 "2023-05-17T14:10:46Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![herrdeh](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/herrdeh/32/821_2.png) [@herrdeh](https://discuss.tryton.org/u/herrdeh)
#### Post date: [May 17, 2023, 2:10pm UTC](https://discuss.tryton.org/t/increase-number-of-digits-in-products-price-reloaded/6158/1 "2023-05-17T14:10:46Z")

</div>

Hello fellow friends,  
I found [this solution](https://discuss.tryton.org/t/increase-number-of-digits-for-cost-list-price-on-products/2362) - put a

```auto
[product]
price_decimal = 6

```

into trytond.conf.

But now when starting the server, I get a  
`ValueError: The price_decimal 6 in [product] configuration section is different from the value 4 in 'ir.configuration'.`  
Running the trytond-admin command does not help either.

What should I do?

Cheers,  
Wolf

---

<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: [May 17, 2023, 2:32pm UTC](https://discuss.tryton.org/t/increase-number-of-digits-in-products-price-reloaded/6158/2 "2023-05-17T14:32:13Z")

</div>

It is not recomended to update this settings after creating the database, as this may produce some data loss (specially if you reduce the number of digits).

For that reason, we store in the `ir.configuration` model the number of digits the database was initialized with. You can update them manually on the database **at your own risk**. Once the value of the database matches the value from the configuration the error won’t be raised anymore.

---

<div class="post-metadata">

### Author: ![herrdeh](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/herrdeh/32/821_2.png) [@herrdeh](https://discuss.tryton.org/u/herrdeh)
#### Post date: [May 17, 2023, 4:00pm UTC](https://discuss.tryton.org/t/increase-number-of-digits-in-products-price-reloaded/6158/3 "2023-05-17T16:00:28Z")

</div>

Works - for now. Let’s see if one day I’ll need my database backup…(;

Cheers,  
Wolf

---

<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: [June 16, 2023, 4:01pm UTC](https://discuss.tryton.org/t/increase-number-of-digits-in-products-price-reloaded/6158/4 "2023-06-16T16:01:27Z")

</div>

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