Add context domain on ir.action.act_window

issue5485
review28061003
This commit is contained in:
Cédric Krier
2017-03-29 22:37:13 +02:00
parent 116c14497b
commit 67dd854cb3
3 changed files with 6 additions and 0 deletions
+1
View File
@@ -1,3 +1,4 @@
* Add context domain on ir.action.act_window
* Allow None limit in action window
* Add has_window_functions on Database
* Allow Many2One on ModelSQL to target ModelStorage
+3
View File
@@ -697,6 +697,9 @@ class ActionActWindow(ActionMixin, ModelSQL, ModelView):
order = fields.Char('Order Value')
res_model = fields.Char('Model')
context_model = fields.Char('Context Model')
context_domain = fields.Char(
"Context Domain",
help="Part of the domain that will be evaluated on each refresh")
act_window_views = fields.One2Many('ir.action.act_window.view',
'act_window', 'Views')
views = fields.Function(fields.Binary('Views'), 'get_views')
@@ -22,6 +22,8 @@ this repository contains the full copyright notices and license terms. -->
view_ids="ir.act_window_domain_view_list2"/>
<label name="domain"/>
<field name="domain" colspan="3" widget="pyson"/>
<label name="context_domain"/>
<field name="context_domain" colspan="3" widget="pyson"/>
<label name="context"/>
<field name="context" colspan="3" widget="pyson"/>
<label name="order"/>