تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
952 أدوات العرض

Hi,


For some particular reasons, I have set it a decimal precision of 5 decimal places in the currency, but need to overwrite the amount of the payment amount to only show two decimal places.


That's because when I make a payment with Check, and the amount has some cents, the amount in letters shows the cents like "thousands of cents":


Ex: 10,500.54000

the amount in letter is ten thousand fifty hundred with fifty four thousand cents.


can I achieve this with an automated action?


thanks.

الصورة الرمزية
إهمال
الكاتب

Can't change the current set up, that's why I need to update the amount in that particular way, in the payment model, customers or vendor.

أفضل إجابة

Hi,
Are you trying to reduce the precision of the currency ? If yes, if you try to do so, odoo will block you with a validation, but it can be bypassed with a server action that runs query with execute code, but you have to ensure that this action wont affect any issue with your existing entries.

Thanks

الصورة الرمزية
إهمال
الكاتب

Can't change the current set up, that's why I need to update the amount in that particular way, in the payment model, customers or vendor.

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أبريل 25
2080
1
أكتوبر 24
1611
1
سبتمبر 24
108
0
يوليو 22
2327
0
أكتوبر 21
1627