diff options
| author | Raphael Collet <rco@openerp.com> | 2015-09-02 10:22:16 +0200 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2015-09-02 14:29:42 +0200 |
| commit | ed95043d7e0c04efd46f033f41bb401a3c24ea91 (patch) | |
| tree | 397c41994a91377c296ea720d971b32632807f42 /addons/project_issue/project_issue_view.xml | |
| parent | 8af431d9063bf36e10278b4a1e7b9391dc6e2bda (diff) | |
[IMP] *: add archive/unarchive feature on some models
Add the statbutton, search filter, and enable the kanban column archiving on
models `res.partner`, `crm.lead`, `event.event`, `hr.employee`, `hr.applicant`,
`mail.mass_mailing`, `mail.mass_mailing.list`, `product.product`,
`project.project`, `project.task`, `project.issue`.
Diffstat (limited to 'addons/project_issue/project_issue_view.xml')
| -rw-r--r-- | addons/project_issue/project_issue_view.xml | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/addons/project_issue/project_issue_view.xml b/addons/project_issue/project_issue_view.xml index ad6d9a7f4e9..ee69b24da9f 100644 --- a/addons/project_issue/project_issue_view.xml +++ b/addons/project_issue/project_issue_view.xml @@ -12,6 +12,13 @@ options="{'fold_field': 'fold'}"/> </header> <sheet string="Issue"> + <div class="oe_button_box" name="button_box"> + <button name="toggle_active" type="object" groups="base.group_no_one" + class="oe_stat_button" icon="fa-archive"> + <field name="active" widget="boolean_button" + options='{"terminology": "archive"}'/> + </button> + </div> <div class="row"> <h1 class="col-xs-11"> <field name="name" class="oe_inline" placeholder="Issue Summary..."/> @@ -59,9 +66,6 @@ <field name="inactivity_days"/> <field name="days_since_creation"/> </group> - <group groups="base.group_no_one"> - <field name="active"/> - </group> </group> </page> </notebook> @@ -122,6 +126,7 @@ <separator/> <filter string="Create Day" context="{'group_by':'create_date:day'}" help="Create Date"/> <filter string="Last Message" name="group_message_last_post" context="{'group_by':'message_last_post:week'}"/> + <filter string="Archived" name="inactive" domain="[('active','=',False)]"/> </group> </search> </field> @@ -153,6 +158,7 @@ <field name="user_id"/> <field name="date_deadline"/> <field name="message_needaction_counter"/> + <field name="active"/> <templates> <t t-name="kanban-tooltip"> <ul class="oe_kanban_tooltip"> |
