bemade-addons/odoo_to_odoo_bemade/views/project_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

30 lines
1.5 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data>
<!-- Extend project form view to add client sync fields -->
<record id="view_project_form_client_sync" model="ir.ui.view">
<field name="name">project.project.form.client.sync</field>
<field name="model">project.project</field>
<field name="inherit_id" ref="project.edit_project"/>
<field name="arch" type="xml">
<xpath expr="//group[@name='extra_settings']" position="inside">
<group string="Client Synchronization" name="client_sync">
<field name="is_client_project"/>
<field name="client_api_token" invisible="not is_client_project"/>
<field name="client_instance_id" invisible="not is_client_project"/>
<button name="action_generate_api_token"
string="Generate API Token"
type="object"
invisible="not is_client_project"
class="btn btn-primary"/>
<button name="action_revoke_api_token"
string="Revoke API Token"
type="object"
invisible="not is_client_project"
class="btn btn-secondary"/>
</group>
</xpath>
</field>
</record>
</data>
</odoo>