diff options
| author | xmo-odoo <xmo@odoo.com> | 2017-05-11 15:25:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-11 15:25:36 +0200 |
| commit | 6659d5a7d2732a7ce80955138ce484ba8ce98ae6 (patch) | |
| tree | 69a003baa2e5719bbbc2afcfe1026535d0c2cbbc /odoo/cli/command.py | |
| parent | 048f122f3da0967f1d312e78d8c92b4233221184 (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/command.py')
| -rw-r--r-- | odoo/cli/command.py | 7 |
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""" |
