bemade-addons/odoo_to_odoo_bemade_customer/views/sync_log_views.xml
mathis b792e43873 [IMP] Odoo Sync Modules: Major Enhancements and Fixes
- Added comprehensive README files for all three sync modules
- Implemented advanced logging system with multiple log levels (DEBUG, INFO, WARNING, ERROR)
- Added automatic sensitive data masking for security in log payloads
- Implemented log retention policy (90 days local, 7 years in AWS S3 Glacier)
- Added AWS S3 integration for long-term log archiving
- Fixed validation error with bemade_instance_id in sync model creation
- Refactored model inheritance structure from _inherit to _inherits for proper delegation
- Fixed duplicate sync model prevention logic
- Restored Test Connection button in instance view
- Fixed connection test logging to properly record success/failure
- Fixed queue creation for connection test logs
- Removed unnecessary Synchronized Module tab from odoo_to_odoo_bemade
- Added database indexing on create_date for performance optimization
- Fixed foreign key constraint violations in field mappings creation
- Enhanced error handling throughout the synchronization process
2025-08-15 08:40:17 -04:00

95 lines
4.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Vue formulaire pour les journaux de synchronisation client -->
<record id="view_odoo_to_bemade_customer_sync_log_form" model="ir.ui.view">
<field name="name">odoo.to.bemade.customer.sync.log.form</field>
<field name="model">odoo.to.bemade.customer.sync.log</field>
<field name="arch" type="xml">
<form string="Journal de synchronisation client" create="false" edit="false">
<sheet>
<div class="oe_title">
<h1><field name="name" readonly="1"/></h1>
</div>
<group>
<group>
<field name="create_date"/>
<field name="model_id"/>
<field name="record_id"/>
</group>
<group>
<field name="operation"/>
<field name="result"/>
<field name="user_id"/>
</group>
</group>
<notebook>
<page string="Détails">
<field name="details" widget="html"/>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<!-- Vue liste pour les journaux de synchronisation client -->
<record id="view_odoo_to_bemade_customer_sync_log_tree" model="ir.ui.view">
<field name="name">odoo.to.bemade.customer.sync.log.tree</field>
<field name="model">odoo.to.bemade.customer.sync.log</field>
<field name="arch" type="xml">
<list string="Journaux de synchronisation client" decoration-success="result == 'success'" decoration-danger="result == 'error'" decoration-info="result == 'info'" create="false">
<field name="create_date"/>
<field name="name"/>
<field name="model_id"/>
<field name="record_id"/>
<field name="operation"/>
<field name="result"/>
<field name="user_id"/>
</list>
</field>
</record>
<!-- Vue recherche pour les journaux de synchronisation client -->
<record id="view_odoo_to_bemade_customer_sync_log_search" model="ir.ui.view">
<field name="name">odoo.to.bemade.customer.sync.log.search</field>
<field name="model">odoo.to.bemade.customer.sync.log</field>
<field name="arch" type="xml">
<search string="Rechercher dans les journaux client">
<field name="name"/>
<field name="model_id"/>
<field name="record_id"/>
<field name="details"/>
<separator/>
<filter string="Succès" name="success" domain="[('result', '=', 'success')]"/>
<filter string="Erreurs" name="error" domain="[('result', '=', 'error')]"/>
<filter string="Informations" name="info" domain="[('result', '=', 'info')]"/>
<separator/>
<filter string="Moi" name="my_logs" domain="[('user_id', '=', uid)]"/>
<group expand="0" string="Regrouper par">
<filter string="Modèle" name="groupby_model" domain="[]" context="{'group_by': 'model_id'}"/>
<filter string="Opération" name="groupby_operation" domain="[]" context="{'group_by': 'operation'}"/>
<filter string="Résultat" name="groupby_result" domain="[]" context="{'group_by': 'result'}"/>
<filter string="Date" name="groupby_create_date" domain="[]" context="{'group_by': 'create_date:day'}"/>
<filter string="Utilisateur" name="groupby_user" domain="[]" context="{'group_by': 'user_id'}"/>
</group>
</search>
</field>
</record>
<!-- Action pour les journaux -->
<record id="action_odoo_to_bemade_customer_sync_logs" model="ir.actions.act_window">
<field name="name">Journaux de synchronisation client</field>
<field name="res_model">odoo.to.bemade.customer.sync.log</field>
<field name="view_mode">list,form</field>
<field name="context">{'search_default_error': 1}</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Aucun journal de synchronisation client pour le moment
</p>
<p>
Les journaux sont créés automatiquement lors des opérations de synchronisation.
Ils permettent de suivre l'historique des synchronisations et de diagnostiquer les problèmes.
</p>
</field>
</record>
</odoo>