Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4 Trả lời
4813 Lượt xem


Hi everyone, everything fine? Every time I search for a product (product_template) it rounds the value. In the database the information is with 6 digits, when I go in the products they are with 6 digits but How much do I run:

test = self.env ['product.template']. search ([('id', '=', 1)])
it returns the value with rounding of 2 digits. Would you be able to see this information but without any kind of hitch? In this specific case I am working with the field 'Weight'
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

For me works this way:

  1. Technical Settings -> Database Structure -> Decimal Accuracy
  2. Edit the "Product Unit of Measure"
  3. Change "Digits" to your desired number
  4. Save
  5. Refresh the page for changes take effect 

Regards

MUHAMMAD IMRAN
Technical and Functional Consultant  (ODOO)


Softtar Technologies Pvt. Ltd. Contact : Pakistan (+92)-3037701373
 
Address:
  
Allhafeez Shopping Mall
Lahore
Pakistan  (Branch Office)
http://sofftar.com
Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Kevin
Thanks for the answer, but unfortunately in my case this solution didn't work unfortunately

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 22
7038
2
thg 9 23
61245
1
thg 12 19
3639
2
thg 7 19
3836
0
thg 9 19
8929