[IMP] LocalService(): re-allow for a few moment (so addons can be updated a bit later).

bzr revid: vmt@openerp.com-20130222145226-dqu6e612oi3yalow
This commit is contained in:
Vo Minh Thu 2013-02-22 15:52:26 +01:00
parent 460cc6f755
commit efb97705f5
1 changed files with 8 additions and 4 deletions

View File

@ -46,10 +46,14 @@ import openerp
_logger = logging.getLogger(__name__)
# TODO LocalService is deprecated.
def LocalService(name, cursor=None):
assert name == 'workflow'
return openerp.workflow
def LocalService(name):
_logger.warning("LocalService() is deprecated.")
if name == 'workflow':
return openerp.workflow
if name.startswith('report.'):
return openerp.report.interface.report_int._reports[name]
BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE, _NOTHING, DEFAULT = range(10)
#The background is set with 40 plus the number of the color, and the foreground with 30