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