İçereği Atla
Odoo Menü
  • Portal
  • Ücretsiz deneyin
  • Uygulamalar
    Finans
    • Muhasebe
    • Faturalama
    • Masraf Yönetimi
    • Elektronik Çizelge (BI)
    • Belgeler
    • İmza
    Satış
    • Müşteri İlişkileri Yönetimi (CRM)
    • Satış
    • Satış Noktası Mağaza
    • Satış Noktası Restoran
    • Abonelikler
    • Kiralama
    Web Sitesi
    • Web Sitesi Oluşturucu
    • eTicaret
    • Blog
    • Forum
    • Canlı Sohbet
    • eÖğrenme
    Tedarik Zinciri
    • Envanter
    • Üretim
    • Ürün Yaşam Döngüsü Yönetimi
    • Satın Alma
    • Bakım
    • Kalite
    İnsan Kaynakları
    • Çalışanlar
    • İşe Alım
    • İzin
    • Değerlendirme
    • Referans
    • Filo Yönetimi
    Pazarlama
    • Sosyal Medyada Pazarlama
    • E-posta ile Pazarlama
    • SMS ile Pazarlama
    • Etkinlikler
    • Pazarlama Otomasyonu
    • Anket
    Hizmetler
    • Proje Yönetimi
    • Çalışma Çizelgeleri
    • Saha Hizmeti
    • Yardım Masası
    • Planlama
    • Randevular
    Verimlilik
    • Sohbet
    • Onay
    • Nesnelerin İnterneti
    • VoIP
    • Bilgi Bankası
    • WhatsApp
    Üçüncü taraf uygulamalar Odoo Stüdyo Odoo Bulut Platformu
  • Sektörler
    Perakende satış
    • Kitapçı
    • Giyim Mağazası
    • Mobilya Mağazası
    • Gıda Marketi
    • Hırdavat Dükkanı
    • Oyuncak Dükkanı
    Gıda ve Konaklama
    • Bar ve Pub
    • Restoran
    • Fast Food Restoranı
    • Konuk Evi
    • İçecek Distribütörü
    • Otel
    Gayrimenkul
    • Emlak Acentesi
    • Mimarlık Firması
    • İnşaat
    • Emlak Yönetimi
    • Bahçe Tasarımı
    • Mülk Sahipleri Derneği
    Uzmanlık
    • Muhasebe Firması
    • Odoo Partner
    • Pazarlama Ajansı
    • Hukuk Firması
    • Yetenek Kazanımı
    • Denetim ve Belgelendirme
    Üretim
    • Tekstil
    • Metal
    • Mobilyalar
    • Gıda
    • Bira fabrikası
    • Kurumsal Hediye
    Sağlık ve Spor
    • Spor Kulübü
    • Optik Mağazası
    • Fitness Merkezi
    • Sağlıklı Yaşam Merkezi
    • Eczane
    • Kuaför Salonu
    Ticaret
    • Tamirci
    • BT Donanım & Destek
    • Güneş Enerjisi Sistemleri
    • Ayakkabı İmalatçısı
    • Temizlik Hizmetleri
    • HVAC Hizmetleri
    Diğerleri
    • Kar Amacı Gütmeyen Kuruluş
    • Çevre Ajansı
    • Reklam Panosu Kiralama
    • Fotoğrafçılık
    • Bisiklet Kiralama
    • Yazılım Bayisi
    Tüm Sektörlere Göz Atın
  • Topluluk
    Öğrenim
    • Eğitim Araçları
    • Dokümantasyon
    • Sertifikasyonlar
    • Eğitim Etkinlikleri
    • Blog
    • Podcast
    Eğitim ve Gelişim
    • Eğitim Programı
    • Scale Up! İşletme Oyunu
    • Odoo'yu Ziyaret Edin
    Yazılım
    • İndirin
    • Sürümleri Kıyaslayın
    • Sürümler
    İş Birliği
    • Github
    • Forum
    • Etkinlikler
    • Çeviriler
    • Partner Olun
    • Partnerler için Hizmetler
    • Muhasebe Firmanızı Kaydettirin
    Hizmetler
    • Partner Bulun
    • Muhasebeci Bulun
    • Bir danışmanla görüşün
    • Kurulum Hizmetleri
    • Müşteri Referansları
    • Destek
    • Sürüm Yükseltme
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Demo randevusu alın
  • Fiyatlandırma
  • Yardım

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • Müşteri İlişkileri Yönetimi
  • e-Commerce
  • Muhasebe
  • Envanter
  • PoS
  • Proje Yönetimi
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
Yardım

Can one change the product cost price decimal precision?

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
4 Cevaplar
13111 Görünümler
Avatar
Peter Romão

Having defined a product bought in yards and maintained in stock in centimeters the current cost price of a product with 2 decimal places is insufficient.

Where can I change the product cost price decimal precision? It does not appear under the technical menu's decimal precision list.


Thanks

0
Avatar
Vazgeç
Cybrosys Techno Solutions Pvt.Ltd

Hi,
You can refer the following forum post.
https://www.odoo.com/forum/help-1/how-to-set-product-price-to-4-decimal-place-131554#:~:text=First activate the developer mode,value of digits to 4

Peter Romão
Üretici

Thank you for your answer, Cybrosys, but the post only mentions the solution for sales prices.

My question is about decimal precision of the cost price of product.

Avatar
Vivek Chauhan
En İyi Yanıt

You can access the decimal precision menu from Settings > Technical > Database Structure > Decimal Accuracy, this will show all the decimal precision used in your system, in order to change product cost decimal precision by default decimal precision is used that goes with the name "Product Price" in this record changing the digits will change the precision. note:This will change decimal precision for product price in all documents as well as in cost and sales price also existing data WON'T be updated by this change.





If you think my answer satisfies your problem please validate and upvote, Thanks.

1
Avatar
Vazgeç
Peter Romão
Üretici

Hello Vivek, thank you for your reply, but I already have that setting with 4 places and the product cost price remains at 2 decimal places precision. Have you checked this in your odoo installation?

I have failed to indicate that I am on odoo 16. I am sorry for that.

Vivek Chauhan

Hello Peter, Where exactly you are unable to get converted decimal precision, i have already checked it in my personal test environment and (in version 16 only) and it updates all the new creating documents like sale, purchase invoices etc., it wont change previously converted documents though.

Peter Romão
Üretici

Hello Vivek and thank you again for your input. I had to answer to you in the answers section of the post because the comments do not let you append images.

Avatar
Cybrosys Techno Solutions Pvt.Ltd
En İyi Yanıt

Hi,

Can you try follow the below steps.

First you have to inherit the product template and add the 'digits' attribute to the field standard_price like the below.

class ProductTemplate(models.Model):
_inherit = 'product.template'

standard_price = fields.Float(
'Cost', compute='_compute_standard_price',
inverse='_set_standard_price', search='_search_standard_price',
digits=dp.get_precision('Product Cost Price'), groups="base.group_user",
help="""In Standard Price & AVCO: value of the product (automatically computed in AVCO).
In FIFO: value of the next unit that will leave the stock (automatically computed).
Used to value the product when the purchase cost is not known (e.g. inventory adjustment).
Used to compute margins on sale orders.""")

Then you have to add an xml file to define the 'Product Cost Price' with the digits you want as below:

<record forcecreate="True" id="decimal_product_cost_price" model="decimal.precision">


    <field name="name">Product Cost Price</field>


    <field name="digits">4</field>


</record>


Regards

1
Avatar
Vazgeç
Peter Romão
Üretici

Thank you for your indications Cybrosys,
I am not a developer but I would be willing to learn how to approach this problem.
Can you give me some indications on what to learn to execute your suggestion?
Alternatively would be so kind as to tell me axactly where to do this? Where to change the model por add the class and where to add the xml file?
Thank you,

Peter Romão
Üretici

Hello Cybrosys,

I have setup a complete development environment and created your class after importing: from odoo import models, fields, api

and there is this error showing up:

62153 CRITICAL MyDB odoo.modules.module: Couldn't load module myfirstmodule
62153 CRITICAL MyDB odoo.modules.module: name 'dp' is not defined

It seems that I must define the variable dp or have to get it from somewhere but I don't know from where.

Also the site localhost 8069 gives me Error 500 Internal Server error.

Avatar
Ashish Hirpara
En İyi Yanıt

In Odoo 16, the decimal precision for the cost price of a product is determined by the decimal precision for the currency of the company that the product belongs to. To change the decimal precision for the cost price of a product, you can go to the Accounting module, select the company that the product belongs to, and then go to the Currency tab. In the Currency tab, you can edit the decimal precision for the currency by changing the value in the "Decimals" field.

To access the Accounting module in Odoo 16, go to the Settings menu and click on the "Accounting" option. In the Accounting module, you can find the list of companies by going to the "Companies" tab. Once you have selected the company that the product belongs to, you can go to the Currency tab and edit the decimal precision for the currency.

Please note that the decimal precision for the currency may affect other fields and calculations in the Accounting module, so you should carefully consider the implications of changing the decimal precision before making any changes.

0
Avatar
Vazgeç
Peter Romão
Üretici

Thank you for this insight Ashish!
I am at a loss though to find this list of companies.
In the accounting module I can't find TABs. I have menus and separators to separate the vertical content on the screen.
I do have a Users & Companies menu where I have the following sub-menus:
Users
Groups
Companies

When I choose Companies only my company appears. None Of the partners (vendors nor customers).

Any ideas?

Avatar
Peter Romão
Üretici En İyi Yanıt

Hello Vivek,

I must put my answer to you here and not in the comments as there I have no means to attach images.

So let's start from scratch in my setup so that images explain the situation better.

I have the Decimal Precision in the Technical Menu set as Product Price => 4

Now let me create a new product that I by in Yards and manage my stock in cm. The product is sold to me in Rolls of 36yds. So I define it like that and you can already get a hint of where the problem resides: just look at the Cost field - 2 decimal places only. But just follow my reasoning.

Then buy the product as shown below (and indeed the Price does have the 4 decimal places I need), each Roll of 36 yds costs me €6.00:


Of Course I do mention in the inventory tab that I can only buy the product in Rolls of 3,291.840 cm (this is 36.000 yards I have 3 decimal places defined for the UoM's)


I now create a new PO for 2 rolls and the first error (that I mention in another post) appears here immediately. You can see that I defined the product as costing me €0.1667/yd in the product master form and the PO document rounds it 0,17/yd. It should have imported the field correctly. That is to say: YES indeed, the PO document does use 4 decimal places in the product purchase price but it ignores its precision and rounds it as if it were a 2 decimal places price.

But OK after adjusting the purchase price manually, which the document does let me do I save the PO, confirm it, receive it and bill it. Interestingly the Vendor Bill does get the supplier price right:


Now before I return to the product form I just check the Stock valuation of the product and it gives me a cost of zero. At first I was like, why? Then it dawned on me that each centimeter of this product costs me €0.001823053368329... (this is the €0.1667/91.44). That is to say that the valuation just rounded my stock valuation to zero in spite of me giving the system all the necessary inputs so that this would not happen?


Now the product form after all these operations does something even worse! It shows me the Cost Price as €0.17 per each centimeter and with only the 2 decimal places.


This would mean that my journals must be wrong somewhere. So I check by going into Inventory->Reporting->Valuation and indeed I now have 3,583.7 centimeters of product valued at €1,097.50 which, ironically is 0.1667*3583.7.


I must say this is not the intended behavior right?

This is a compound sequence of errors by odoo, which I am surprised it never surfaced with anyone before. Or am I doing something profoundly wrong?

I hope this explains my problem in depth and sufficiently. Can you check that your system does the same thing?

Thanks,


0
Avatar
Vazgeç
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Üye Ol
Topluluk
  • Eğitim Araçları
  • Dokümantasyon
  • Forum
Açık Kaynak
  • İndirin
  • Github
  • Runbot
  • Çeviriler
Hizmetler
  • Odoo.sh Hosting
  • Destek
  • Sürüm Yükseltme
  • Özel Geliştirmeler
  • Eğitim
  • Muhasebeci Bulun
  • Partner Bulun
  • Partner Olun
Hakkında
  • Şirketimiz
  • Pazarlama Gereçleri
  • İletişim
  • Kariyer
  • Etkinlikler
  • Podcast
  • Blog
  • Müşteriler
  • Hukuki • Gizlilik
  • Güvenlik
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo, müşteri ilişkileri yönetimi, eTicaret, muhasebe, envanter, satış noktası, proje yönetimi gibi şirketinizin tüm ihtiyaçlarını karşılayan bir açık kaynak işletme uygulamaları paketidir.

Odoo’nun eşsiz değer önermesi, aynı anda hem kullanımının çok kolay olup hem de tamamen entegre olmasıdır.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now