[REF] l10n_br: removed openerp.pooler imports.
bzr revid: vmt@openerp.com-20130327114936-7uat1r5shh7602b9
This commit is contained in:
parent
b50a8838b5
commit
22e6aa6e01
|
@ -17,7 +17,7 @@
|
||||||
#along with this program. If not, see <http://www.gnu.org/licenses/>. #
|
#along with this program. If not, see <http://www.gnu.org/licenses/>. #
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
|
||||||
from openerp import pooler
|
import openerp
|
||||||
from openerp.osv import fields, osv
|
from openerp.osv import fields, osv
|
||||||
|
|
||||||
TAX_CODE_COLUMNS = {
|
TAX_CODE_COLUMNS = {
|
||||||
|
@ -92,7 +92,8 @@ class account_tax_code(osv.osv):
|
||||||
|
|
||||||
def get_precision_tax():
|
def get_precision_tax():
|
||||||
def change_digit_tax(cr):
|
def change_digit_tax(cr):
|
||||||
res = pooler.get_pool(cr.dbname).get('decimal.precision').precision_get(cr, 1, 'Account')
|
decimal_precision = openerp.registry(cr.dbname)['decimal.precision']
|
||||||
|
res = decimal_precision.precision_get(cr, 1, 'Account')
|
||||||
return (16, res+2)
|
return (16, res+2)
|
||||||
return change_digit_tax
|
return change_digit_tax
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue