mirror of
https://github.com/bringout/oca-ocb-accounting.git
synced 2026-04-22 21:02:01 +02:00
Initial commit: Accounting packages
This commit is contained in:
commit
4ef34c2317
2661 changed files with 1709616 additions and 0 deletions
|
|
@ -0,0 +1,10 @@
|
|||
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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue