Add server file path option to bypass upload size limits
Some checks failed
pre-commit / pre-commit (push) Has been cancelled
tests / Detect unreleased dependencies (push) Has been cancelled
tests / test with OCB (push) Has been cancelled
tests / test with Odoo (push) Has been cancelled

This commit is contained in:
2026-03-14 02:23:24 +00:00
parent 37b3540eb8
commit a49fbbede7

View File

@@ -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"/>