diff options
| author | Kishan Gajjar <kig@odoo.com> | 2017-04-10 16:45:34 +0530 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2017-05-11 11:38:42 +0200 |
| commit | 8b40c29736b050221720a775a66f3c567901e016 (patch) | |
| tree | 64807edeca53b96092580b3d6210d1a24caababf /addons/google_drive/views | |
| parent | e9e7c63727a12cae27592201f47d069501fec869 (diff) | |
[IMP] various: Add kanban views for all menuitems used in mobile
Purpose
=======
Improve readability on mobile
Specification
=============
Activate Kanban view on those so it could be displayed by default on mobile instead of view list
List of impacted modules:
- report_intrastat: kanban for intrastat
- google_drive: kanban for Google Drive(Templates)
- anonymization: kanban for anonymized fields
Diffstat (limited to 'addons/google_drive/views')
| -rw-r--r-- | addons/google_drive/views/google_drive_views.xml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/addons/google_drive/views/google_drive_views.xml b/addons/google_drive/views/google_drive_views.xml index 4e282533ec2..74ca3f93da5 100644 --- a/addons/google_drive/views/google_drive_views.xml +++ b/addons/google_drive/views/google_drive_views.xml @@ -52,11 +52,43 @@ </field> </record> + <record id="view_google_drive_config_kanban" model="ir.ui.view"> + <field name="name">google.drive.config.kanban</field> + <field name="model">google.drive.config</field> + <field name="arch" type="xml"> + <kanban> + <field name="name"/> + <field name="active"/> + <field name="model_id"/> + <templates> + <t t-name="kanban-box"> + <div t-attf-class="oe_kanban_global_click"> + <div class="row"> + <div class="col-xs-4 text-center"><strong>Template</strong></div> + <div class="col-xs-4 text-center"><strong>Model</strong></div> + <div class="col-xs-4 text-center"><strong>Active</strong></div> + </div> + <hr class="mb4 mt4"/> + <div class="row"> + <div class="col-xs-4 text-center"><field name="name"/></div> + <div class="col-xs-4 text-center"><field name="model_id"/></div> + <div class="col-xs-4 text-center"> + <field name="active" widget="boolean"/> + </div> + </div> + </div> + </t> + </templates> + </kanban> + </field> + </record> + <record id='action_google_drive_users_config' model='ir.actions.act_window'> <field name='name'>Templates</field> <field name='res_model'>google.drive.config</field> <field name='type'>ir.actions.act_window</field> <field name='view_type'>form</field> + <field name="view_mode">tree,kanban,form</field> <field name='view_id' ref='view_google_drive_config_tree' /> <field name="help" type="html"> <p class="oe_view_nocontent_create"> |
