[IMP]Yaltik DSL : add XML filter
This commit is contained in:
parent
63152aabdb
commit
8709bd2195
@ -19,7 +19,7 @@
|
|||||||
'name': 'Yaltik Odoo DSL base module and fns',
|
'name': 'Yaltik Odoo DSL base module and fns',
|
||||||
'summary': 'Yaltik Odoo Domain Specific Language base module and functions',
|
'summary': 'Yaltik Odoo Domain Specific Language base module and functions',
|
||||||
'description': """ 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',
|
'category': 'Yaltik',
|
||||||
'author': 'Fabien Bourgeois',
|
'author': 'Fabien Bourgeois',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
|
@ -72,6 +72,8 @@ field_model = lambda model: field({'name': 'model'}, [model])
|
|||||||
field_inherit = lambda xmlid: field({'name': 'inherit_id', 'ref': xmlid}, [])
|
field_inherit = lambda xmlid: field({'name': 'inherit_id', 'ref': xmlid}, [])
|
||||||
field_arch = lambda *args: field({'name': 'arch', 'type': 'xml'}, *args)
|
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)
|
view = lambda xmlid, children: record({'id': xmlid, 'model': 'ir.ui.view'}, children)
|
||||||
|
|
||||||
def view_def(xmlid, name, model, arch):
|
def view_def(xmlid, name, model, arch):
|
||||||
|
Loading…
Reference in New Issue
Block a user