mirror of
https://github.com/NaN-tic/trytond-galatea_cms.git
synced 2023-12-14 04:32:53 +01:00
Add test on domain of relation fields
issue10794
This commit is contained in:
parent
67a7ee84ec
commit
47f5f7e2cc
1 changed files with 1 additions and 1 deletions
2
cms.py
2
cms.py
|
@ -110,7 +110,7 @@ class Menu(tree(), DeactivableMixin, ModelSQL, ModelView):
|
|||
help='Hidden Large devices')
|
||||
image = fields.Many2One('ir.attachment', 'Image',
|
||||
domain=[
|
||||
('resource.id', '=', Eval('id'), 'galatea.cms.menu')
|
||||
('resource.id', '=', Eval('id', -1), 'galatea.cms.menu')
|
||||
], depends = ['id'])
|
||||
description = fields.Text('Description', translate=True)
|
||||
|
||||
|
|
Loading…
Reference in a new issue