Add server file path option to bypass upload size limits
This commit is contained in:
@@ -6,19 +6,24 @@
|
||||
<field name="model">wt.import.timeline.wizard</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Import Google Timeline">
|
||||
<group>
|
||||
<group string="File">
|
||||
<field name="timeline_file" filename="timeline_filename" required="1"/>
|
||||
<field name="timeline_filename" invisible="1"/>
|
||||
</group>
|
||||
<group string="Options">
|
||||
<field name="min_stop_minutes"/>
|
||||
<field name="proximity_meters"/>
|
||||
<field name="geocode"/>
|
||||
</group>
|
||||
<group string="Source">
|
||||
<field name="import_mode" widget="radio"/>
|
||||
</group>
|
||||
<group string="File Upload" invisible="import_mode != 'upload'">
|
||||
<field name="timeline_file" filename="timeline_filename"/>
|
||||
<field name="timeline_filename" invisible="1"/>
|
||||
</group>
|
||||
<group string="Server File Path" invisible="import_mode != 'server_path'">
|
||||
<field name="server_file_path" placeholder="/home/tocmo0nlord/odoo/extra-addons/work_trace/Timeline.json"/>
|
||||
</group>
|
||||
<group string="Options">
|
||||
<field name="min_stop_minutes"/>
|
||||
<field name="proximity_meters"/>
|
||||
<field name="geocode"/>
|
||||
</group>
|
||||
<div class="alert alert-info" role="alert">
|
||||
All travel dates will be imported. Re-importing the same file will skip existing stops automatically.
|
||||
All travel dates will be imported. Re-importing skips existing stops automatically.
|
||||
Supports both Timeline.json (from phone) and Timeline Edits.json (from Google Takeout).
|
||||
</div>
|
||||
<footer>
|
||||
<button name="action_import" string="Import" type="object" class="btn-primary"/>
|
||||
|
||||
Reference in New Issue
Block a user