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="model">wt.import.timeline.wizard</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<form string="Import Google Timeline"> <form string="Import Google Timeline">
<group> <group string="Source">
<group string="File"> <field name="import_mode" widget="radio"/>
<field name="timeline_file" filename="timeline_filename" required="1"/> </group>
<field name="timeline_filename" invisible="1"/> <group string="File Upload" invisible="import_mode != 'upload'">
</group> <field name="timeline_file" filename="timeline_filename"/>
<group string="Options"> <field name="timeline_filename" invisible="1"/>
<field name="min_stop_minutes"/> </group>
<field name="proximity_meters"/> <group string="Server File Path" invisible="import_mode != 'server_path'">
<field name="geocode"/> <field name="server_file_path" placeholder="/home/tocmo0nlord/odoo/extra-addons/work_trace/Timeline.json"/>
</group> </group>
<group string="Options">
<field name="min_stop_minutes"/>
<field name="proximity_meters"/>
<field name="geocode"/>
</group> </group>
<div class="alert alert-info" role="alert"> <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> </div>
<footer> <footer>
<button name="action_import" string="Import" type="object" class="btn-primary"/> <button name="action_import" string="Import" type="object" class="btn-primary"/>