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