mirror of
https://github.com/bringout/oca-ocb-accounting.git
synced 2026-04-21 02:22:04 +02:00
10 lines
378 B
Python
10 lines
378 B
Python
from odoo import models
|
|
|
|
class DecimalPrecision(models.Model):
|
|
_inherit = 'decimal.precision'
|
|
|
|
def precision_get(self, application):
|
|
stackmap = self.env.cr.cache.get('account_disable_recursion_stack', {})
|
|
if application == 'Discount' and stackmap.get('ignore_discount_precision'):
|
|
return 100
|
|
return super().precision_get(application)
|