[IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20130209053524-2vkiy92khsn1nfrw
This commit is contained in:
parent
9c416d171b
commit
9f93fdac95
|
@ -28,12 +28,7 @@
|
|||
#
|
||||
##############################################################################
|
||||
|
||||
from openerp.osv import fields,osv
|
||||
import pooler
|
||||
import netsvc
|
||||
import time
|
||||
from xml import dom
|
||||
|
||||
from openerp.osv import fields, osv
|
||||
|
||||
CODE_EXEC_DEFAULT = '''\
|
||||
res = []
|
||||
|
|
|
@ -22,8 +22,10 @@
|
|||
|
||||
import datetime
|
||||
import time
|
||||
from report import report_sxw
|
||||
|
||||
from openerp.report import report_sxw
|
||||
from openerp.tools.translate import _
|
||||
|
||||
#
|
||||
# Use period and Journal for selection or resources
|
||||
#
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from osv import osv, fields
|
||||
from openerp.osv import fields, osv
|
||||
|
||||
AVAILABLE_STATES = [
|
||||
('draft', 'New'),
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
|
||||
|
||||
import logging
|
||||
import openerp
|
||||
from openerp import netsvc
|
||||
from dav_fs import openerp_dav_handler
|
||||
from openerp.tools.config import config
|
||||
|
@ -56,7 +57,6 @@ import urllib
|
|||
import re
|
||||
import time
|
||||
from string import atoi
|
||||
import addons
|
||||
import socket
|
||||
# from DAV.constants import DAV_VERSION_1, DAV_VERSION_2
|
||||
from xml.dom import minidom
|
||||
|
@ -609,7 +609,7 @@ try:
|
|||
if base_path and base_path == '/':
|
||||
dir_path = config.get_misc('static-http', 'dir_path', False)
|
||||
else:
|
||||
dir_path = addons.get_module_resource('document_webdav','public_html')
|
||||
dir_path = openerp.addons.get_module_resource('document_webdav','public_html')
|
||||
# an _ugly_ hack: we put that dir back in tools.config.misc, so that
|
||||
# the StaticHttpHandler can find its dir_path.
|
||||
config.misc.setdefault('static-http',{})['dir_path'] = dir_path
|
||||
|
|
|
@ -19,9 +19,7 @@
|
|||
#
|
||||
##############################################################################
|
||||
|
||||
import tools
|
||||
from osv import osv
|
||||
import addons
|
||||
from openerp.osv import osv
|
||||
|
||||
class AccountWizard_cd(osv.osv_memory):
|
||||
_inherit='wizard.multi.charts.accounts'
|
||||
|
@ -30,5 +28,3 @@ class AccountWizard_cd(osv.osv_memory):
|
|||
'code_digits' : 6,
|
||||
}
|
||||
|
||||
AccountWizard_cd()
|
||||
|
||||
|
|
Loading…
Reference in New Issue