Files
Odoo-Modules/fusion_claims/wizard/adp_export_wizard_views.xml
gsinghpal a839285bd4 feat: ADP Export Files menu with filestore storage, remove Sync All button
- Add fusion_claims.adp.export.record model with filestore-backed Binary field
  for tracking exported ADP claims files organized by Year > Month > Posting Period
- Add tree/form/search views with default group-by hierarchy, latest first
- Add "Export Files" menuitem under ADP menu section
- Add bulk ZIP download server action for multi-select export
- Replace Documents app storage with new model in export wizard
- Remove Documents-related methods (_save_to_documents, folder creation)
- Add migration button in Settings to move existing Documents files
- Fix Export ADP button visibility: only show on ADP portion invoices
- Remove redundant Sync All button from invoice form
- Add ACL entries for billing users (read/create) and managers (full CRUD)
- Bump version to 19.0.7.3.0

Made-with: Cursor
2026-03-15 12:27:06 -04:00

72 lines
3.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2024-2025 Nexa Systems Inc.
License OPL-1 (Odoo Proprietary License v1.0)
Part of the Fusion Claim Assistant product family.
-->
<odoo>
<!-- ADP Export Wizard Form -->
<record id="view_fusion_claims_export_wizard_form" model="ir.ui.view">
<field name="name">fusion.central.export.wizard.form</field>
<field name="model">fusion_claims.export.wizard</field>
<field name="arch" type="xml">
<form string="Export ADP Claims">
<!-- Draft State: Configuration -->
<group invisible="state == 'done'">
<group string="Export Configuration">
<field name="vendor_code" placeholder="e.g., 1234567"/>
<field name="export_date"/>
</group>
<group string="Invoices to Export">
<field name="invoice_ids" widget="many2many_tags" readonly="1" nolabel="1"/>
</group>
</group>
<!-- Done State: Results -->
<group invisible="state != 'done'">
<div class="alert alert-success" role="alert">
<h5><i class="fa fa-check-circle"/> Export Complete!</h5>
<field name="export_summary" nolabel="1"/>
</div>
<!-- Warnings if any -->
<div class="alert alert-warning" role="alert" invisible="not warnings">
<h5><i class="fa fa-exclamation-triangle"/> Warnings</h5>
<field name="warnings" nolabel="1"/>
</div>
<group string="Download Export File">
<field name="export_filename" readonly="1"/>
<field name="export_file" filename="export_filename" readonly="1"/>
</group>
<div class="text-muted small" invisible="not saved_to_export_records">
<i class="fa fa-folder-open"/> File saved to Fusion Claims &gt; ADP &gt; Export Files
</div>
</group>
<field name="state" invisible="1"/>
<field name="saved_to_export_records" invisible="1"/>
<field name="warnings" invisible="1"/>
<footer>
<button string="Export" name="action_export" type="object"
class="btn-primary" invisible="state == 'done'"
icon="fa-download"/>
<button string="Download" class="btn-primary" invisible="state != 'done'"
special="cancel"/>
<button string="Close" class="btn-secondary" special="cancel"/>
</footer>
</form>
</field>
</record>
<!-- Menu Action -->
<record id="action_fusion_claims_export_wizard" model="ir.actions.act_window">
<field name="name">Export ADP Claims</field>
<field name="res_model">fusion_claims.export.wizard</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
</odoo>