|
|
@ -71,11 +71,13 @@ |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<search string="Rules"> |
|
|
|
<field name="name"/> |
|
|
|
<filter domain="[('state','=','draft')]" string="Draft"/> |
|
|
|
<filter domain="[('state','=','subscribed')]" string="Subscribed"/> |
|
|
|
<filter name="state_draft" |
|
|
|
domain="[('state','=','draft')]" string="Draft"/> |
|
|
|
<filter name="state_subscribed" |
|
|
|
domain="[('state','=','subscribed')]" string="Subscribed"/> |
|
|
|
<field name="model_id"/> |
|
|
|
<group expand="0" string="Group By..."> |
|
|
|
<filter string="State" |
|
|
|
<filter name="group_by_state" string="State" |
|
|
|
domain="[]" context="{'group_by':'state'}"/> |
|
|
|
</group> |
|
|
|
</search> |
|
|
@ -88,7 +90,7 @@ |
|
|
|
<field name="type">ir.actions.act_window</field> |
|
|
|
<field name="view_type">form</field> |
|
|
|
<field name="view_mode">tree,form</field> |
|
|
|
<field name="context">{'search_default_draft': 1}</field> |
|
|
|
<field name="context">{}</field> |
|
|
|
<field name="search_view_id" ref="view_auditlog_rule_search"/> |
|
|
|
</record> |
|
|
|
|
|
|
@ -168,10 +170,18 @@ |
|
|
|
<field name="res_id"/> |
|
|
|
<field name="user_id"/> |
|
|
|
<group expand="0" string="Group By..."> |
|
|
|
<filter string="User" domain="[]" context="{'group_by':'user_id'}"/> |
|
|
|
<filter string="Model" domain="[]" context="{'group_by':'model_id'}"/> |
|
|
|
<filter string="Resource ID" domain="[]" context="{'group_by':'res_id'}"/> |
|
|
|
<filter string="Date" domain="[]" context="{'group_by':'timestamp'}"/> |
|
|
|
<filter name="group_by_user_id" |
|
|
|
string="User" |
|
|
|
domain="[]" context="{'group_by':'user_id'}"/> |
|
|
|
<filter name="group_by_model_id" |
|
|
|
string="Model" |
|
|
|
domain="[]" context="{'group_by':'model_id'}"/> |
|
|
|
<filter name="group_by_res_id" |
|
|
|
string="Resource ID" |
|
|
|
domain="[]" context="{'group_by':'res_id'}"/> |
|
|
|
<filter name="group_by_timestamp" |
|
|
|
string="Date" |
|
|
|
domain="[]" context="{'group_by':'timestamp'}"/> |
|
|
|
</group> |
|
|
|
</search> |
|
|
|
</field> |
|
|
|