11 lines
378 B
Python
11 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)
|