diff --git a/yaltik_dsl/__manifest__.py b/yaltik_dsl/__manifest__.py index 8cb4c16..886dad6 100644 --- a/yaltik_dsl/__manifest__.py +++ b/yaltik_dsl/__manifest__.py @@ -19,7 +19,7 @@ 'name': 'Yaltik Odoo DSL base module and fns', 'summary': 'Yaltik Odoo Domain Specific Language base module and functions', 'description': """ Yaltik Odoo Domain Specific Language base module and functions """, - 'version': '10.0.0.2.1', + 'version': '10.0.0.2.2', 'category': 'Yaltik', 'author': 'Fabien Bourgeois', 'license': 'AGPL-3', diff --git a/yaltik_dsl/odoo.py b/yaltik_dsl/odoo.py index 860d18a..ac7fe14 100644 --- a/yaltik_dsl/odoo.py +++ b/yaltik_dsl/odoo.py @@ -72,6 +72,8 @@ field_model = lambda model: field({'name': 'model'}, [model]) field_inherit = lambda xmlid: field({'name': 'inherit_id', 'ref': xmlid}, []) field_arch = lambda *args: field({'name': 'arch', 'type': 'xml'}, *args) +filter = lambda *args: xmln('filter', *args) + view = lambda xmlid, children: record({'id': xmlid, 'model': 'ir.ui.view'}, children) def view_def(xmlid, name, model, arch):