decimal_precision.py 250 B

12345678910
  1. # -*- coding: utf-8 -*-
  2. from openerp.http import request as r
  3. def check_discount_precision():
  4. discount_precision = r.env['decimal.precision'].search([('name', '=', 'Discount')])
  5. discount_precision.sudo().write({
  6. 'digits': 9
  7. })