- Added comprehensive dependency management with proper OdooRPC library integration - Fixed XML-RPC, JSON-RPC, and OdooRPC connection authentication issues - Implemented proper Odoo 18 API key format support with scope parameter - Added intelligent field mapping wizard with Full/Required/Balanced modes - Enhanced error handling and connection state management - Removed legacy API key system for clean reinstall capability - Added detailed debug logging for connection troubleshooting
104 lines
5.8 KiB
XML
104 lines
5.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="view_sync_model_list" model="ir.ui.view">
|
|
<field name="name">odoo.sync.model.list</field>
|
|
<field name="model">odoo.sync.model</field>
|
|
<field name="arch" type="xml">
|
|
<list>
|
|
<field name="model_id"/>
|
|
<field name="instance_id"/>
|
|
<field name="target_model"/>
|
|
<field name="priority"/>
|
|
<field name="active" widget="boolean_toggle"/>
|
|
</list>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_sync_model_form" model="ir.ui.view">
|
|
<field name="name">odoo.sync.model.form</field>
|
|
<field name="model">odoo.sync.model</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<sheet>
|
|
<div class="oe_button_box" name="button_box">
|
|
<button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive">
|
|
<field name="active" widget="boolean_button"/>
|
|
</button>
|
|
<button name="action_auto_sync_fields" type="object" class="oe_stat_button" icon="fa-magic" string="Auto Sync Fields"/>
|
|
</div>
|
|
<group>
|
|
<group>
|
|
<field name="model_id" options="{'no_create': True}"/>
|
|
<field name="instance_id" options="{'no_create': True}"/>
|
|
<field name="target_model" placeholder="Exemple: res.partner"/>
|
|
</group>
|
|
<group>
|
|
<field name="name" readonly="1"/>
|
|
<field name="priority"/>
|
|
</group>
|
|
</group>
|
|
<notebook>
|
|
<page string="Champs synchronisés">
|
|
<field name="field_ids" context="{'default_model_sync_id': id}">
|
|
<list editable="bottom">
|
|
<field name="sequence" widget="handle"/>
|
|
<field name="field_id" options="{'no_create': True}"/>
|
|
<field name="name" readonly="1"/>
|
|
<field name="mapping_type"/>
|
|
<field name="required"/>
|
|
<field name="sync_default" placeholder="Valeur par défaut si vide"/>
|
|
<field name="conflict_strategy" widget="radio"/>
|
|
</list>
|
|
<form>
|
|
<sheet>
|
|
<group>
|
|
<group>
|
|
<field name="field_id" options="{'no_create': True}"/>
|
|
<field name="name" readonly="1"/>
|
|
<field name="source_field" placeholder="Ex: name"/>
|
|
<field name="target_field" placeholder="Ex: display_name"/>
|
|
</group>
|
|
<group>
|
|
<field name="mapping_type"/>
|
|
<field name="required"/>
|
|
<field name="is_identifier"/>
|
|
<field name="active"/>
|
|
</group>
|
|
</group>
|
|
<group string="Configuration avancée" attrs="{'invisible': [('mapping_type', '=', 'direct')]}">
|
|
<group string="Mapping Fonction" attrs="{'invisible': [('mapping_type', '!=', 'function')]}">
|
|
<field name="mapping_function" placeholder="Ex: res.partner.get_display_name"/>
|
|
</group>
|
|
<group string="Mapping Calculé" attrs="{'invisible': [('mapping_type', '!=', 'computed')]}">
|
|
<field name="mapping_expression" placeholder="Ex: record.name.upper()"/>
|
|
</group>
|
|
<group string="Mapping Relation" attrs="{'invisible': [('mapping_type', '!=', 'relation')]}">
|
|
<field name="relation_model" placeholder="Ex: res.partner"/>
|
|
<field name="relation_field" placeholder="Ex: email"/>
|
|
<field name="relation_domain" placeholder='[[("active", "=", True)]]'/>
|
|
</group>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</page>
|
|
</notebook>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_sync_model" model="ir.actions.act_window">
|
|
<field name="name">Modèles synchronisés</field>
|
|
<field name="res_model">odoo.sync.model</field>
|
|
<field name="view_mode">list,form</field>
|
|
<field name="help" type="html">
|
|
<p class="o_view_nocontent_smiling_face">
|
|
Aucun modèle synchronisé défini
|
|
</p>
|
|
<p>
|
|
Définissez les modèles à synchroniser entre vos instances Odoo.
|
|
</p>
|
|
</field>
|
|
</record>
|
|
</odoo>
|