- 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
85 lines
3.9 KiB
XML
85 lines
3.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- Vue formulaire pour la configuration client Bemade -->
|
|
<record id="view_odoo_to_bemade_customer_config_form" model="ir.ui.view">
|
|
<field name="name">odoo.to.bemade.customer.config.form</field>
|
|
<field name="model">odoo.to.bemade.customer.config</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Configuration Bemade">
|
|
<header>
|
|
<button name="test_connection" string="Tester la connexion" type="object" class="oe_highlight"
|
|
invisible="state == 'connected'"/>
|
|
<button name="reset_configuration" string="Réinitialiser" type="object"
|
|
invisible="state not in ['connected', 'error']"/>
|
|
<field name="state" widget="statusbar"
|
|
statusbar_visible="draft,testing,error,connected"/>
|
|
</header>
|
|
<sheet>
|
|
<div class="oe_title">
|
|
<h1><field name="name" readonly="1"/></h1>
|
|
</div>
|
|
<group>
|
|
<group>
|
|
<field name="client_key" readonly="state == 'connected'"/>
|
|
<field name="api_key" password="True" readonly="state == 'connected'"/>
|
|
<field name="company_name" readonly="1"/>
|
|
</group>
|
|
<group>
|
|
<field name="instance_id" readonly="1"/>
|
|
<field name="active"/>
|
|
<field name="auto_configure"/>
|
|
</group>
|
|
</group>
|
|
<notebook>
|
|
<page string="Modèles synchronisés" invisible="state != 'connected'">
|
|
<field name="sync_models">
|
|
<list>
|
|
<field name="name"/>
|
|
<field name="model"/>
|
|
<field name="bemade_model"/>
|
|
<field name="active"/>
|
|
</list>
|
|
</field>
|
|
</page>
|
|
<page string="Informations de connexion" invisible="state not in ['connected', 'error']">
|
|
<group>
|
|
<field name="last_sync" readonly="1"/>
|
|
<field name="error_message" readonly="1" invisible="not error_message"/>
|
|
</group>
|
|
</page>
|
|
</notebook>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Vue liste pour la configuration client Bemade -->
|
|
<record id="view_odoo_to_bemade_customer_config_tree" model="ir.ui.view">
|
|
<field name="name">odoo.to.bemade.customer.config.tree</field>
|
|
<field name="model">odoo.to.bemade.customer.config</field>
|
|
<field name="arch" type="xml">
|
|
<list>
|
|
<field name="name"/>
|
|
<field name="company_name"/>
|
|
<field name="state"/>
|
|
<field name="last_sync"/>
|
|
</list>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Action pour la configuration client Bemade -->
|
|
<record id="action_odoo_to_bemade_customer_config" model="ir.actions.act_window">
|
|
<field name="name">Configuration Bemade</field>
|
|
<field name="res_model">odoo.to.bemade.customer.config</field>
|
|
<field name="view_mode">list,form</field>
|
|
<field name="help" type="html">
|
|
<p class="o_view_nocontent_smiling_face">
|
|
Configurez votre connexion avec Odoo.bemade.org
|
|
</p>
|
|
<p>
|
|
Entrez votre clé client et votre clé API pour vous connecter à la plateforme Bemade.
|
|
</p>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|