summaryrefslogtreecommitdiff
path: root/odoo/cli
diff options
context:
space:
mode:
authorxmo-odoo <xmo@odoo.com>2017-05-11 15:25:36 +0200
committerGitHub <noreply@github.com>2017-05-11 15:25:36 +0200
commit6659d5a7d2732a7ce80955138ce484ba8ce98ae6 (patch)
tree69a003baa2e5719bbbc2afcfe1026535d0c2cbbc /odoo/cli
parent048f122f3da0967f1d312e78d8c92b4233221184 (diff)
[FIX] P3: metaclasses handling
* cross-version metaclass spec * more formally deprecate browse_record and browse_null since they were using metaclasses anyway * update docstrings referencing the latter
Diffstat (limited to 'odoo/cli')
-rw-r--r--odoo/cli/command.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/odoo/cli/command.py b/odoo/cli/command.py
index 503ffcb360a..cf9a41095d6 100644
--- a/odoo/cli/command.py
+++ b/odoo/cli/command.py
@@ -17,12 +17,7 @@ class CommandType(type):
if name != 'command':
commands[name] = cls
-class Command(object):
- """Subclass this class to define new odoo subcommands """
- __metaclass__ = CommandType
-
- def run(self, args):
- pass
+Command = CommandType('Command', (object,), {'run': lambda self, args: None})
class Help(Command):
"""Display the list of available commands"""