2018-01-16 06:58:15 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-01-16 11:34:37 +01:00
|
|
|
<flectra>
|
2018-01-16 06:58:15 +01:00
|
|
|
|
|
|
|
<!-- add google drive config field in user form -->
|
|
|
|
|
|
|
|
<record id="view_ir_attachment_google_spreadsheet_tree" model="ir.ui.view">
|
|
|
|
<field name="name">ir.attachment.google.spreadsheet.tree</field>
|
|
|
|
<field name="model">ir.attachment</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Google Spreadsheets">
|
|
|
|
<field name="name" string="Name"/>
|
|
|
|
<field name="url" />
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="view_ir_attachment_google_spreadsheet_form" model="ir.ui.view">
|
|
|
|
<field name="name">ir.attachment.google.spreadsheet.form</field>
|
|
|
|
<field name="model">ir.attachment</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Google Spreadsheets">
|
|
|
|
<sheet>
|
|
|
|
<group>
|
|
|
|
<group>
|
|
|
|
<field name="name" string="Name"/>
|
|
|
|
<field name="url" widget="url"/>
|
|
|
|
</group>
|
|
|
|
<group colspan="2">
|
|
|
|
<label for="description" colspan="2"/>
|
|
|
|
<field name="description" nolabel="1" colspan="2"/>
|
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
</sheet>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="action_ir_attachment_google_spreadsheet_tree" model="ir.actions.act_window">
|
|
|
|
<field name="name">Google Spreadsheets</field>
|
|
|
|
<field name="res_model">ir.attachment</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
<field name="context">{}</field>
|
|
|
|
<field name="domain">[('url', '=ilike', '%google%/spreadsheet%')]</field>
|
|
|
|
<field name="help">Google Spreadsheets</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="action_ir_attachment_google_spreadsheet_tree_view" model="ir.actions.act_window.view">
|
|
|
|
<field eval="1" name="sequence"/>
|
|
|
|
<field name="view_mode">tree</field>
|
|
|
|
<field name="view_id" ref="view_ir_attachment_google_spreadsheet_tree"/>
|
|
|
|
<field name="act_window_id" ref="action_ir_attachment_google_spreadsheet_tree"/>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="action_ir_attachment_google_spreadsheet_form_view" model="ir.actions.act_window.view">
|
|
|
|
<field eval="2" name="sequence"/>
|
|
|
|
<field name="view_mode">form</field>
|
|
|
|
<field name="view_id" ref="view_ir_attachment_google_spreadsheet_form"/>
|
|
|
|
<field name="act_window_id" ref="action_ir_attachment_google_spreadsheet_tree"/>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<menuitem
|
|
|
|
id="menu_reporting_dashboard_google_spreadsheets"
|
|
|
|
parent="base.menu_board_root"
|
|
|
|
action="action_ir_attachment_google_spreadsheet_tree"/>
|
|
|
|
|
2018-01-16 11:34:37 +01:00
|
|
|
</flectra>
|