Files
project_v19/odoo_project_sync/views/remote_project_views.xml
T

59 lines
2.8 KiB
XML
Raw Normal View History

2026-07-01 14:41:49 +07:00
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_remote_project_list" model="ir.ui.view">
<field name="name">project.sync.remote.project.list</field>
<field name="model">project.sync.remote.project</field>
<field name="arch" type="xml">
<list editable="bottom" create="false" delete="false">
<field name="remote_id" readonly="1"/>
<field name="remote_name" readonly="1"/>
<field name="local_project_id"/>
<field name="tasks_synced_count" readonly="1"/>
<field name="last_sync_attempt" readonly="1"/>
<field name="sync_status" widget="badge"
decoration-success="sync_status=='synced'"
decoration-warning="sync_status=='pending'"
decoration-danger="sync_status=='error'"/>
<field name="error_message" readonly="1" optional="hide"/>
</list>
</field>
</record>
<record id="view_remote_project_form" model="ir.ui.view">
<field name="name">project.sync.remote.project.form</field>
<field name="model">project.sync.remote.project</field>
<field name="arch" type="xml">
<form create="false" delete="false">
<sheet>
<group>
<group>
<field name="remote_id"/>
<field name="remote_name"/>
<field name="sync_config_id"/>
</group>
<group>
<field name="local_project_id"/>
<field name="sync_status"/>
<field name="tasks_synced_count"/>
<field name="last_sync_attempt"/>
</group>
</group>
<group string="Error Details" invisible="not error_message">
<field name="error_message" nolabel="1" readonly="1"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="action_project_sync_remote" model="ir.actions.act_window">
<field name="name">Project Sync Configurations</field>
<field name="res_model">project.sync.remote.project</field>
<field name="view_mode">list,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create a connection to start syncing projects between Odoo instances.
</p>
</field>
</record>
<menuitem id="menu_project_sync_remote" name="Sync Remote" parent="menu_project_sync_root" action="action_project_sync_remote" sequence="11"/>
</odoo>