Split 49 modules/suites into independent git repos; untrack from monorepo
Each top-level module/suite folder is now its own private repo on GitHub (gsinghpal/<name>) and gitea (admin/<name>), with a fresh single initial commit. The monorepo no longer tracks them (added to .gitignore + git rm --cached); working-tree files are retained on disk and managed in their own repos. The monorepo keeps shared root files (CLAUDE.md, docs/, scripts/, tools/, AGENTS.md, WIP/obsolete dirs) and full history. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<!-- Redirect action for Settings → WooCommerce -->
|
||||
<record id="action_woo_config_settings" model="ir.actions.act_window">
|
||||
<field name="name">WooCommerce Settings</field>
|
||||
<field name="res_model">woo.instance</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
@@ -1,26 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<!-- Inherit sale.order form — add WooCommerce tab -->
|
||||
<record id="sale_order_view_form_woo" model="ir.ui.view">
|
||||
<field name="name">sale.order.form.woo</field>
|
||||
<field name="model">sale.order</field>
|
||||
<field name="inherit_id" ref="sale.view_order_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//notebook" position="inside">
|
||||
<page string="WooCommerce" name="woocommerce"
|
||||
invisible="woo_order_count == 0">
|
||||
<field name="woo_bind_ids" readonly="1">
|
||||
<list>
|
||||
<field name="instance_id"/>
|
||||
<field name="woo_order_number"/>
|
||||
<field name="woo_status"/>
|
||||
<field name="state" widget="badge"/>
|
||||
</list>
|
||||
</field>
|
||||
</page>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
@@ -1,23 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<!-- Inherit stock.picking form — add WC tracking fields -->
|
||||
<record id="stock_picking_view_form_woo" model="ir.ui.view">
|
||||
<field name="name">stock.picking.form.woo</field>
|
||||
<field name="model">stock.picking</field>
|
||||
<field name="inherit_id" ref="stock.view_picking_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//page[@name='extra']" position="after">
|
||||
<page string="WooCommerce" name="woo_shipping" invisible="not is_woo_delivery">
|
||||
<group>
|
||||
<group string="Shipping Details">
|
||||
<field name="woo_tracking_number"/>
|
||||
<field name="woo_carrier_id"/>
|
||||
</group>
|
||||
</group>
|
||||
</page>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
@@ -1,43 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<!-- ===== List View ===== -->
|
||||
<record id="woo_category_map_view_list" model="ir.ui.view">
|
||||
<field name="name">woo.category.map.list</field>
|
||||
<field name="model">woo.category.map</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="instance_id"/>
|
||||
<field name="odoo_category_id"/>
|
||||
<field name="woo_category_name"/>
|
||||
<field name="woo_category_slug"/>
|
||||
<field name="woo_category_id"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ===== Form View ===== -->
|
||||
<record id="woo_category_map_view_form" model="ir.ui.view">
|
||||
<field name="name">woo.category.map.form</field>
|
||||
<field name="model">woo.category.map</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<sheet>
|
||||
<group>
|
||||
<group string="WooCommerce Category">
|
||||
<field name="woo_category_id"/>
|
||||
<field name="woo_category_name"/>
|
||||
<field name="woo_category_slug"/>
|
||||
</group>
|
||||
<group string="Odoo Mapping">
|
||||
<field name="instance_id"/>
|
||||
<field name="odoo_category_id"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
</group>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
@@ -1,91 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<!-- ===== Tree View ===== -->
|
||||
<record id="woo_conflict_view_tree" model="ir.ui.view">
|
||||
<field name="name">woo.conflict.tree</field>
|
||||
<field name="model">woo.conflict</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="instance_id"/>
|
||||
<field name="conflict_type"/>
|
||||
<field name="field_name"/>
|
||||
<field name="odoo_value"/>
|
||||
<field name="woo_value"/>
|
||||
<field name="resolution" widget="badge"
|
||||
decoration-warning="resolution == 'pending'"
|
||||
decoration-success="resolution != 'pending'"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ===== Form View ===== -->
|
||||
<record id="woo_conflict_view_form" model="ir.ui.view">
|
||||
<field name="name">woo.conflict.form</field>
|
||||
<field name="model">woo.conflict</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<header>
|
||||
<button name="action_use_odoo" type="object"
|
||||
string="Use Odoo Value" class="oe_highlight"
|
||||
invisible="resolution != 'pending'"/>
|
||||
<button name="action_use_woo" type="object"
|
||||
string="Use WooCommerce Value"
|
||||
invisible="resolution != 'pending'"/>
|
||||
<field name="resolution" widget="statusbar"/>
|
||||
</header>
|
||||
<sheet>
|
||||
<group>
|
||||
<group string="Context">
|
||||
<field name="instance_id"/>
|
||||
<field name="conflict_type"/>
|
||||
<field name="field_name"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
</group>
|
||||
<group string="Values">
|
||||
<field name="odoo_value"/>
|
||||
<field name="woo_value"/>
|
||||
</group>
|
||||
</group>
|
||||
<group string="Related Records">
|
||||
<field name="map_id" invisible="conflict_type != 'product'"/>
|
||||
<field name="customer_id" invisible="conflict_type != 'customer'"/>
|
||||
<field name="order_id" invisible="conflict_type != 'order'"/>
|
||||
<field name="resolved_by"/>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ===== Search View ===== -->
|
||||
<record id="woo_conflict_view_search" model="ir.ui.view">
|
||||
<field name="name">woo.conflict.search</field>
|
||||
<field name="model">woo.conflict</field>
|
||||
<field name="arch" type="xml">
|
||||
<search>
|
||||
<field name="field_name"/>
|
||||
<filter name="pending" string="Pending"
|
||||
domain="[('resolution', '=', 'pending')]"/>
|
||||
<filter name="resolved" string="Resolved"
|
||||
domain="[('resolution', '!=', 'pending')]"/>
|
||||
<separator/>
|
||||
<filter name="group_type" string="Type"
|
||||
context="{'group_by': 'conflict_type'}"/>
|
||||
<filter name="group_instance" string="Instance"
|
||||
context="{'group_by': 'instance_id'}"/>
|
||||
<filter name="group_resolution" string="Resolution"
|
||||
context="{'group_by': 'resolution'}"/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ===== Action ===== -->
|
||||
<record id="action_woo_conflict" model="ir.actions.act_window">
|
||||
<field name="name">Sync Conflicts</field>
|
||||
<field name="res_model">woo.conflict</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
<field name="search_view_id" ref="woo_conflict_view_search"/>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
@@ -1,66 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<!-- ===== Tree View ===== -->
|
||||
<record id="woo_customer_view_tree" model="ir.ui.view">
|
||||
<field name="name">woo.customer.tree</field>
|
||||
<field name="model">woo.customer</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="instance_id"/>
|
||||
<field name="partner_id"/>
|
||||
<field name="woo_customer_id"/>
|
||||
<field name="woo_email"/>
|
||||
<field name="last_synced"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ===== Form View ===== -->
|
||||
<record id="woo_customer_view_form" model="ir.ui.view">
|
||||
<field name="name">woo.customer.form</field>
|
||||
<field name="model">woo.customer</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<sheet>
|
||||
<group>
|
||||
<group>
|
||||
<field name="instance_id"/>
|
||||
<field name="partner_id"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="woo_customer_id"/>
|
||||
<field name="woo_email"/>
|
||||
<field name="last_synced"/>
|
||||
</group>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ===== Search View ===== -->
|
||||
<record id="woo_customer_view_search" model="ir.ui.view">
|
||||
<field name="name">woo.customer.search</field>
|
||||
<field name="model">woo.customer</field>
|
||||
<field name="arch" type="xml">
|
||||
<search>
|
||||
<field name="partner_id"/>
|
||||
<field name="woo_email"/>
|
||||
<separator/>
|
||||
<filter name="group_instance" string="Instance"
|
||||
context="{'group_by': 'instance_id'}"/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ===== Action ===== -->
|
||||
<record id="action_woo_customer" model="ir.actions.act_window">
|
||||
<field name="name">WooCommerce Customers</field>
|
||||
<field name="res_model">woo.customer</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
<field name="search_view_id" ref="woo_customer_view_search"/>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
@@ -1,16 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<!-- ===== Dashboard Client Action (Task 15) ===== -->
|
||||
<record id="action_woo_dashboard" model="ir.actions.client">
|
||||
<field name="name">WooCommerce Dashboard</field>
|
||||
<field name="tag">fusion_woocommerce.woo_dashboard</field>
|
||||
</record>
|
||||
|
||||
<!-- ===== Product Mapping Client Action (Task 14) ===== -->
|
||||
<record id="action_woo_product_map_ui" model="ir.actions.client">
|
||||
<field name="name">Product Mapping</field>
|
||||
<field name="tag">fusion_woocommerce.product_mapping</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
@@ -1,242 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<!-- ===== Tree View ===== -->
|
||||
<record id="woo_instance_view_tree" model="ir.ui.view">
|
||||
<field name="name">woo.instance.tree</field>
|
||||
<field name="model">woo.instance</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="name"/>
|
||||
<field name="url"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
<field name="last_sync"/>
|
||||
<field name="state" widget="badge"
|
||||
decoration-success="state == 'connected'"
|
||||
decoration-warning="state == 'draft'"
|
||||
decoration-danger="state == 'error'"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ===== Form View ===== -->
|
||||
<record id="woo_instance_view_form" model="ir.ui.view">
|
||||
<field name="name">woo.instance.form</field>
|
||||
<field name="model">woo.instance</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<header>
|
||||
<button name="action_test_connection" type="object"
|
||||
string="Test Connection" class="oe_highlight"/>
|
||||
<button name="action_generate_api_key" type="object"
|
||||
string="Generate API Key"/>
|
||||
<field name="state" widget="statusbar"
|
||||
statusbar_visible="draft,connected"/>
|
||||
</header>
|
||||
<sheet>
|
||||
<div class="oe_button_box" name="button_box">
|
||||
<button class="oe_stat_button" icon="fa-link" type="object"
|
||||
name="action_view_product_maps">
|
||||
<field name="mapped_count" widget="statinfo"
|
||||
string="Mapped"/>
|
||||
</button>
|
||||
<button class="oe_stat_button" icon="fa-chain-broken" type="object"
|
||||
name="action_view_product_maps">
|
||||
<field name="unmapped_count" widget="statinfo"
|
||||
string="Unmapped"/>
|
||||
</button>
|
||||
<button class="oe_stat_button" icon="fa-exclamation-triangle" type="object"
|
||||
name="action_view_sync_errors">
|
||||
<field name="error_count" widget="statinfo"
|
||||
string="Errors (24h)"/>
|
||||
</button>
|
||||
</div>
|
||||
<div class="oe_title">
|
||||
<h1><field name="name" placeholder="Instance Name"/></h1>
|
||||
</div>
|
||||
<group>
|
||||
<group string="Connection">
|
||||
<field name="url" placeholder="https://store.example.com"/>
|
||||
<field name="consumer_key" password="True"/>
|
||||
<field name="consumer_secret" password="True"/>
|
||||
<field name="webhook_secret" password="True"/>
|
||||
<field name="wc_api_version"/>
|
||||
<field name="odoo_api_key" readonly="1" widget="CopyClipboardChar"/>
|
||||
</group>
|
||||
<group string="Company">
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
<field name="last_sync"/>
|
||||
</group>
|
||||
</group>
|
||||
<notebook>
|
||||
<page string="Sync Settings" name="sync_settings">
|
||||
<group>
|
||||
<group>
|
||||
<field name="sync_interval"/>
|
||||
<field name="default_warehouse_id"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="sync_products"/>
|
||||
<field name="sync_orders"/>
|
||||
<field name="sync_invoices"/>
|
||||
<field name="sync_inventory"/>
|
||||
<field name="sync_customers"/>
|
||||
</group>
|
||||
</group>
|
||||
<separator string="Tax Mapping"/>
|
||||
<div class="mb-2">
|
||||
<button name="action_fetch_wc_tax_classes" type="object"
|
||||
string="Fetch WC Tax Classes" class="oe_highlight"/>
|
||||
</div>
|
||||
<field name="tax_map_ids">
|
||||
<list editable="bottom">
|
||||
<field name="tax_id" string="Odoo Tax"
|
||||
domain="[('type_tax_use', '=', 'sale')]"/>
|
||||
<field name="woo_tax_class_name" string="WC Tax Class" readonly="1"/>
|
||||
<field name="woo_tax_class" string="WC Slug" readonly="1"/>
|
||||
</list>
|
||||
</field>
|
||||
<separator string="Pricelist Mapping"/>
|
||||
<field name="pricelist_map_ids">
|
||||
<list editable="bottom">
|
||||
<field name="pricelist_id" string="Odoo Pricelist"/>
|
||||
<field name="woo_role" string="WC Customer Role"/>
|
||||
<field name="woo_role_name" string="WC Role Name"/>
|
||||
</list>
|
||||
</field>
|
||||
</page>
|
||||
<page string="Notifications" name="notifications">
|
||||
<group>
|
||||
<field name="notify_on_failure"/>
|
||||
<field name="notify_user_ids" widget="many2many_tags"
|
||||
invisible="not notify_on_failure"/>
|
||||
</group>
|
||||
</page>
|
||||
<page string="Product Mappings" name="product_maps">
|
||||
<field name="product_map_ids">
|
||||
<list editable="bottom">
|
||||
<field name="product_id"/>
|
||||
<field name="woo_product_name"/>
|
||||
<field name="woo_sku"/>
|
||||
<field name="woo_product_type"/>
|
||||
<field name="sync_price"/>
|
||||
<field name="sync_inventory"/>
|
||||
<field name="last_synced"/>
|
||||
<field name="state" widget="badge"
|
||||
decoration-success="state == 'mapped'"
|
||||
decoration-warning="state == 'conflict'"
|
||||
decoration-danger="state == 'error'"/>
|
||||
</list>
|
||||
</field>
|
||||
</page>
|
||||
<page string="Orders" name="orders">
|
||||
<field name="order_ids">
|
||||
<list>
|
||||
<field name="woo_order_number"/>
|
||||
<field name="sale_order_id"/>
|
||||
<field name="woo_status"/>
|
||||
<field name="state" widget="badge"/>
|
||||
</list>
|
||||
</field>
|
||||
</page>
|
||||
<page string="Sync Log" name="sync_log">
|
||||
<field name="sync_log_ids" readonly="1">
|
||||
<list>
|
||||
<field name="create_date"/>
|
||||
<field name="sync_type"/>
|
||||
<field name="direction"/>
|
||||
<field name="record_ref"/>
|
||||
<field name="state" widget="badge"
|
||||
decoration-success="state == 'success'"
|
||||
decoration-danger="state == 'failed'"
|
||||
decoration-warning="state == 'conflict'"/>
|
||||
<field name="message"/>
|
||||
</list>
|
||||
</field>
|
||||
</page>
|
||||
<page string="Category Mapping" name="category_mapping">
|
||||
<div class="mb-2">
|
||||
<button name="action_fetch_wc_categories" type="object"
|
||||
string="Fetch WC Categories" class="btn btn-primary"/>
|
||||
</div>
|
||||
<field name="category_map_ids">
|
||||
<list editable="bottom">
|
||||
<field name="odoo_category_id" string="Odoo Category"/>
|
||||
<field name="woo_category_name" string="WC Category Name" readonly="1"/>
|
||||
<field name="woo_category_slug" string="WC Category Slug" readonly="1"/>
|
||||
<field name="woo_category_id" string="WC ID" readonly="1"/>
|
||||
</list>
|
||||
</field>
|
||||
</page>
|
||||
<page string="AI Settings" name="ai_settings">
|
||||
<group string="AI Provider">
|
||||
<group>
|
||||
<field name="ai_provider"/>
|
||||
<field name="ai_api_key" password="True"/>
|
||||
<field name="ai_model"/>
|
||||
</group>
|
||||
<group string="GPS Coordinates">
|
||||
<field name="geo_lat"/>
|
||||
<field name="geo_lng"/>
|
||||
<field name="geo_company_name"/>
|
||||
<field name="geo_company_address"/>
|
||||
<field name="geo_company_phone"/>
|
||||
</group>
|
||||
</group>
|
||||
<separator string="AI Prompts"/>
|
||||
<label for="prompt_product_title" string="Product Title Prompt"/>
|
||||
<field name="prompt_product_title" nolabel="1" widget="text" placeholder="Prompt for generating product titles..."/>
|
||||
<label for="prompt_short_description" string="Short Description Prompt"/>
|
||||
<field name="prompt_short_description" nolabel="1" widget="text" placeholder="Prompt for generating short descriptions..."/>
|
||||
<label for="prompt_long_description" string="Long Description Prompt"/>
|
||||
<field name="prompt_long_description" nolabel="1" widget="text" placeholder="Prompt for generating long descriptions..."/>
|
||||
<label for="prompt_meta_title" string="Meta Title Prompt"/>
|
||||
<field name="prompt_meta_title" nolabel="1" widget="text" placeholder="Prompt for generating SEO meta titles..."/>
|
||||
<label for="prompt_meta_description" string="Meta Description Prompt"/>
|
||||
<field name="prompt_meta_description" nolabel="1" widget="text" placeholder="Prompt for generating SEO meta descriptions..."/>
|
||||
<label for="prompt_image_alt" string="Image Alt Text Prompt"/>
|
||||
<field name="prompt_image_alt" nolabel="1" widget="text" placeholder="Prompt for generating image alt text..."/>
|
||||
<label for="prompt_image_caption" string="Image Caption Prompt"/>
|
||||
<field name="prompt_image_caption" nolabel="1" widget="text" placeholder="Prompt for generating image captions..."/>
|
||||
<label for="prompt_keywords" string="Keywords Prompt"/>
|
||||
<field name="prompt_keywords" nolabel="1" widget="text" placeholder="Prompt for generating SEO keywords..."/>
|
||||
</page>
|
||||
</notebook>
|
||||
</sheet>
|
||||
<chatter/>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ===== Search View ===== -->
|
||||
<record id="woo_instance_view_search" model="ir.ui.view">
|
||||
<field name="name">woo.instance.search</field>
|
||||
<field name="model">woo.instance</field>
|
||||
<field name="arch" type="xml">
|
||||
<search>
|
||||
<field name="name"/>
|
||||
<field name="url"/>
|
||||
<filter name="connected" string="Connected"
|
||||
domain="[('state', '=', 'connected')]"/>
|
||||
<filter name="draft" string="Draft"
|
||||
domain="[('state', '=', 'draft')]"/>
|
||||
<filter name="error" string="Error"
|
||||
domain="[('state', '=', 'error')]"/>
|
||||
<separator/>
|
||||
<filter name="group_state" string="State"
|
||||
context="{'group_by': 'state'}"/>
|
||||
<filter name="group_company" string="Company"
|
||||
context="{'group_by': 'company_id'}"/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ===== Action ===== -->
|
||||
<record id="action_woo_instance" model="ir.actions.act_window">
|
||||
<field name="name">WooCommerce Instances</field>
|
||||
<field name="res_model">woo.instance</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
<field name="search_view_id" ref="woo_instance_view_search"/>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
@@ -1,85 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<!-- ===== Top-Level Menu ===== -->
|
||||
<menuitem id="woo_menu_root"
|
||||
name="WooCommerce"
|
||||
web_icon="fusion_woocommerce,static/description/icon.png"
|
||||
sequence="100"/>
|
||||
|
||||
<!-- ===== Dashboard ===== -->
|
||||
<menuitem id="woo_menu_dashboard"
|
||||
name="Dashboard"
|
||||
parent="woo_menu_root"
|
||||
action="action_woo_dashboard"
|
||||
sequence="10"/>
|
||||
|
||||
<!-- ===== Operations ===== -->
|
||||
<menuitem id="woo_menu_operations"
|
||||
name="Operations"
|
||||
parent="woo_menu_root"
|
||||
sequence="20"/>
|
||||
|
||||
<menuitem id="woo_menu_product_map"
|
||||
name="Product Mapping"
|
||||
parent="woo_menu_operations"
|
||||
action="action_woo_product_map_ui"
|
||||
sequence="10"/>
|
||||
|
||||
<menuitem id="woo_menu_orders"
|
||||
name="Orders"
|
||||
parent="woo_menu_operations"
|
||||
action="action_woo_order"
|
||||
sequence="20"/>
|
||||
|
||||
<menuitem id="woo_menu_customers"
|
||||
name="Customers"
|
||||
parent="woo_menu_operations"
|
||||
action="action_woo_customer"
|
||||
sequence="30"/>
|
||||
|
||||
<menuitem id="woo_menu_returns"
|
||||
name="Returns"
|
||||
parent="woo_menu_operations"
|
||||
action="action_woo_return"
|
||||
sequence="40"/>
|
||||
|
||||
<!-- ===== Monitoring ===== -->
|
||||
<menuitem id="woo_menu_monitoring"
|
||||
name="Monitoring"
|
||||
parent="woo_menu_root"
|
||||
sequence="30"/>
|
||||
|
||||
<menuitem id="woo_menu_sync_log"
|
||||
name="Sync Logs"
|
||||
parent="woo_menu_monitoring"
|
||||
action="action_woo_sync_log"
|
||||
sequence="10"/>
|
||||
|
||||
<menuitem id="woo_menu_conflicts"
|
||||
name="Conflicts"
|
||||
parent="woo_menu_monitoring"
|
||||
action="action_woo_conflict"
|
||||
sequence="20"/>
|
||||
|
||||
<!-- ===== Configuration ===== -->
|
||||
<menuitem id="woo_menu_config"
|
||||
name="Configuration"
|
||||
parent="woo_menu_root"
|
||||
sequence="40"/>
|
||||
|
||||
<menuitem id="woo_menu_instances"
|
||||
name="Instances"
|
||||
parent="woo_menu_config"
|
||||
action="action_woo_instance"
|
||||
sequence="10"/>
|
||||
|
||||
<menuitem id="woo_menu_shipping_carriers"
|
||||
name="Shipping Carriers"
|
||||
parent="woo_menu_config"
|
||||
action="action_woo_shipping_carrier"
|
||||
sequence="20"/>
|
||||
|
||||
<!-- Tax and Pricelist mapping moved inline to Instance → Sync Settings -->
|
||||
|
||||
</odoo>
|
||||
@@ -1,125 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<!-- ===== Tree View ===== -->
|
||||
<record id="woo_order_view_tree" model="ir.ui.view">
|
||||
<field name="name">woo.order.tree</field>
|
||||
<field name="model">woo.order</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="woo_order_number"/>
|
||||
<field name="instance_id"/>
|
||||
<field name="sale_order_id"/>
|
||||
<field name="woo_status"/>
|
||||
<field name="state" widget="badge"
|
||||
decoration-success="state == 'completed'"
|
||||
decoration-info="state == 'confirmed'"
|
||||
decoration-warning="state == 'shipped'"
|
||||
decoration-danger="state == 'cancelled'"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ===== Form View ===== -->
|
||||
<record id="woo_order_view_form" model="ir.ui.view">
|
||||
<field name="name">woo.order.form</field>
|
||||
<field name="model">woo.order</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<header>
|
||||
<field name="state" widget="statusbar"
|
||||
statusbar_visible="new,confirmed,shipped,completed"/>
|
||||
</header>
|
||||
<sheet>
|
||||
<div class="oe_button_box" name="button_box">
|
||||
<button name="action_view_sale_order" type="object"
|
||||
class="oe_stat_button" icon="fa-file-text-o"
|
||||
invisible="not sale_order_id">
|
||||
<div class="o_stat_info">
|
||||
<span class="o_stat_text">Sale Order</span>
|
||||
</div>
|
||||
</button>
|
||||
<button name="action_view_deliveries" type="object"
|
||||
class="oe_stat_button" icon="fa-truck"
|
||||
invisible="delivery_count == 0">
|
||||
<field name="delivery_count" widget="statinfo" string="Delivery"/>
|
||||
</button>
|
||||
<button name="action_view_invoices" type="object"
|
||||
class="oe_stat_button" icon="fa-pencil-square-o"
|
||||
invisible="invoice_count == 0">
|
||||
<field name="invoice_count" widget="statinfo" string="Invoices"/>
|
||||
</button>
|
||||
</div>
|
||||
<div class="oe_title">
|
||||
<h1>
|
||||
<field name="woo_order_number" readonly="1" placeholder="WC Order #"/>
|
||||
</h1>
|
||||
</div>
|
||||
<group>
|
||||
<group string="WooCommerce">
|
||||
<field name="woo_status"/>
|
||||
<field name="instance_id"/>
|
||||
</group>
|
||||
<group string="Odoo">
|
||||
<field name="sale_order_id"/>
|
||||
<field name="invoice_id"/>
|
||||
<field name="invoice_synced"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
</group>
|
||||
</group>
|
||||
<notebook>
|
||||
<page string="Shipments" name="shipments">
|
||||
<field name="shipment_ids">
|
||||
<list>
|
||||
<field name="picking_id"/>
|
||||
<field name="carrier_id"/>
|
||||
<field name="tracking_number"/>
|
||||
<field name="shipped_date"/>
|
||||
<field name="is_backorder"/>
|
||||
<field name="synced_to_woo"/>
|
||||
</list>
|
||||
</field>
|
||||
</page>
|
||||
</notebook>
|
||||
</sheet>
|
||||
<chatter/>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ===== Search View ===== -->
|
||||
<record id="woo_order_view_search" model="ir.ui.view">
|
||||
<field name="name">woo.order.search</field>
|
||||
<field name="model">woo.order</field>
|
||||
<field name="arch" type="xml">
|
||||
<search>
|
||||
<field name="woo_order_number"/>
|
||||
<field name="sale_order_id"/>
|
||||
<filter name="new" string="New"
|
||||
domain="[('state', '=', 'new')]"/>
|
||||
<filter name="confirmed" string="Confirmed"
|
||||
domain="[('state', '=', 'confirmed')]"/>
|
||||
<filter name="shipped" string="Shipped"
|
||||
domain="[('state', '=', 'shipped')]"/>
|
||||
<filter name="completed" string="Completed"
|
||||
domain="[('state', '=', 'completed')]"/>
|
||||
<filter name="cancelled" string="Cancelled"
|
||||
domain="[('state', '=', 'cancelled')]"/>
|
||||
<separator/>
|
||||
<filter name="group_instance" string="Instance"
|
||||
context="{'group_by': 'instance_id'}"/>
|
||||
<filter name="group_state" string="State"
|
||||
context="{'group_by': 'state'}"/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ===== Action ===== -->
|
||||
<record id="action_woo_order" model="ir.actions.act_window">
|
||||
<field name="name">WooCommerce Orders</field>
|
||||
<field name="res_model">woo.order</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
<field name="search_view_id" ref="woo_order_view_search"/>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
@@ -1,26 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<!-- ===== Tree View (editable inline) ===== -->
|
||||
<record id="woo_pricelist_map_view_tree" model="ir.ui.view">
|
||||
<field name="name">woo.pricelist.map.tree</field>
|
||||
<field name="model">woo.pricelist.map</field>
|
||||
<field name="arch" type="xml">
|
||||
<list editable="bottom">
|
||||
<field name="instance_id"/>
|
||||
<field name="pricelist_id"/>
|
||||
<field name="woo_role"/>
|
||||
<field name="woo_role_name"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ===== Action ===== -->
|
||||
<record id="action_woo_pricelist_map" model="ir.actions.act_window">
|
||||
<field name="name">Price List Mapping</field>
|
||||
<field name="res_model">woo.pricelist.map</field>
|
||||
<field name="view_mode">list</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
@@ -1,103 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<!-- ===== Tree View ===== -->
|
||||
<record id="woo_product_map_view_tree" model="ir.ui.view">
|
||||
<field name="name">woo.product.map.tree</field>
|
||||
<field name="model">woo.product.map</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="instance_id"/>
|
||||
<field name="product_id"/>
|
||||
<field name="woo_product_name"/>
|
||||
<field name="woo_sku"/>
|
||||
<field name="woo_product_type"/>
|
||||
<field name="woo_category_name" optional="show"/>
|
||||
<field name="sync_price"/>
|
||||
<field name="sync_inventory"/>
|
||||
<field name="last_synced"/>
|
||||
<field name="state" widget="badge"
|
||||
decoration-success="state == 'mapped'"
|
||||
decoration-warning="state == 'conflict'"
|
||||
decoration-danger="state == 'error'"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ===== Form View ===== -->
|
||||
<record id="woo_product_map_view_form" model="ir.ui.view">
|
||||
<field name="name">woo.product.map.form</field>
|
||||
<field name="model">woo.product.map</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<sheet>
|
||||
<group>
|
||||
<group string="Odoo">
|
||||
<field name="instance_id"/>
|
||||
<field name="product_id"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
</group>
|
||||
<group string="WooCommerce">
|
||||
<field name="woo_product_id"/>
|
||||
<field name="woo_product_name"/>
|
||||
<field name="woo_sku"/>
|
||||
<field name="woo_product_type"/>
|
||||
<field name="woo_category_id"/>
|
||||
<field name="woo_category_name"/>
|
||||
<field name="woo_parent_id"/>
|
||||
<field name="is_variation"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<group string="Sync Options">
|
||||
<field name="sync_price"/>
|
||||
<field name="sync_inventory"/>
|
||||
<field name="sync_images"/>
|
||||
</group>
|
||||
<group string="Status">
|
||||
<field name="state"/>
|
||||
<field name="last_synced"/>
|
||||
</group>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ===== Search View ===== -->
|
||||
<record id="woo_product_map_view_search" model="ir.ui.view">
|
||||
<field name="name">woo.product.map.search</field>
|
||||
<field name="model">woo.product.map</field>
|
||||
<field name="arch" type="xml">
|
||||
<search>
|
||||
<field name="product_id"/>
|
||||
<field name="woo_product_name"/>
|
||||
<field name="woo_sku"/>
|
||||
<filter name="mapped" string="Mapped"
|
||||
domain="[('state', '=', 'mapped')]"/>
|
||||
<filter name="unmapped" string="Unmapped"
|
||||
domain="[('state', '=', 'unmapped')]"/>
|
||||
<filter name="conflict" string="Conflicts"
|
||||
domain="[('state', '=', 'conflict')]"/>
|
||||
<filter name="error" string="Errors"
|
||||
domain="[('state', '=', 'error')]"/>
|
||||
<separator/>
|
||||
<filter name="group_instance" string="Instance"
|
||||
context="{'group_by': 'instance_id'}"/>
|
||||
<filter name="group_state" string="State"
|
||||
context="{'group_by': 'state'}"/>
|
||||
<filter name="group_type" string="Product Type"
|
||||
context="{'group_by': 'woo_product_type'}"/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ===== Action ===== -->
|
||||
<record id="action_woo_product_map" model="ir.actions.act_window">
|
||||
<field name="name">Product Mapping</field>
|
||||
<field name="res_model">woo.product.map</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
<field name="search_view_id" ref="woo_product_map_view_search"/>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
@@ -1,102 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<!-- ===== Tree View ===== -->
|
||||
<record id="woo_return_view_tree" model="ir.ui.view">
|
||||
<field name="name">woo.return.tree</field>
|
||||
<field name="model">woo.return</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="instance_id"/>
|
||||
<field name="order_id"/>
|
||||
<field name="picking_id"/>
|
||||
<field name="reason"/>
|
||||
<field name="state" widget="badge"
|
||||
decoration-success="state == 'refunded'"
|
||||
decoration-info="state == 'approved'"
|
||||
decoration-warning="state == 'requested'"
|
||||
decoration-danger="state == 'rejected'"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ===== Form View ===== -->
|
||||
<record id="woo_return_view_form" model="ir.ui.view">
|
||||
<field name="name">woo.return.form</field>
|
||||
<field name="model">woo.return</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<header>
|
||||
<button name="action_approve" type="object" string="Approve"
|
||||
class="oe_highlight"
|
||||
invisible="state != 'requested'"/>
|
||||
<button name="action_reject" type="object" string="Reject"
|
||||
invisible="state != 'requested'"/>
|
||||
<button name="action_receive" type="object" string="Receive"
|
||||
class="oe_highlight"
|
||||
invisible="state != 'approved'"/>
|
||||
<button name="action_refund" type="object" string="Refund"
|
||||
class="oe_highlight"
|
||||
invisible="state != 'received'"/>
|
||||
<field name="state" widget="statusbar"
|
||||
statusbar_visible="requested,approved,received,refunded"/>
|
||||
</header>
|
||||
<sheet>
|
||||
<group>
|
||||
<group>
|
||||
<field name="instance_id"/>
|
||||
<field name="order_id"/>
|
||||
<field name="picking_id"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="reason"/>
|
||||
</group>
|
||||
</group>
|
||||
<notebook>
|
||||
<page string="Return Lines" name="lines">
|
||||
<field name="line_ids">
|
||||
<list editable="bottom">
|
||||
<field name="product_id"/>
|
||||
<field name="quantity"/>
|
||||
<field name="reason"/>
|
||||
</list>
|
||||
</field>
|
||||
</page>
|
||||
</notebook>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ===== Search View ===== -->
|
||||
<record id="woo_return_view_search" model="ir.ui.view">
|
||||
<field name="name">woo.return.search</field>
|
||||
<field name="model">woo.return</field>
|
||||
<field name="arch" type="xml">
|
||||
<search>
|
||||
<field name="order_id"/>
|
||||
<filter name="requested" string="Requested"
|
||||
domain="[('state', '=', 'requested')]"/>
|
||||
<filter name="approved" string="Approved"
|
||||
domain="[('state', '=', 'approved')]"/>
|
||||
<filter name="refunded" string="Refunded"
|
||||
domain="[('state', '=', 'refunded')]"/>
|
||||
<separator/>
|
||||
<filter name="group_state" string="State"
|
||||
context="{'group_by': 'state'}"/>
|
||||
<filter name="group_instance" string="Instance"
|
||||
context="{'group_by': 'instance_id'}"/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ===== Action ===== -->
|
||||
<record id="action_woo_return" model="ir.actions.act_window">
|
||||
<field name="name">WooCommerce Returns</field>
|
||||
<field name="res_model">woo.return</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
<field name="search_view_id" ref="woo_return_view_search"/>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
@@ -1,25 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<!-- ===== Tree View (editable inline) ===== -->
|
||||
<record id="woo_shipping_carrier_view_tree" model="ir.ui.view">
|
||||
<field name="name">woo.shipping.carrier.tree</field>
|
||||
<field name="model">woo.shipping.carrier</field>
|
||||
<field name="arch" type="xml">
|
||||
<list editable="bottom">
|
||||
<field name="name"/>
|
||||
<field name="code"/>
|
||||
<field name="tracking_url"/>
|
||||
<field name="active"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ===== Action ===== -->
|
||||
<record id="action_woo_shipping_carrier" model="ir.actions.act_window">
|
||||
<field name="name">Shipping Carriers</field>
|
||||
<field name="res_model">woo.shipping.carrier</field>
|
||||
<field name="view_mode">list</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
@@ -1,100 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<!-- ===== Tree View ===== -->
|
||||
<record id="woo_sync_log_view_tree" model="ir.ui.view">
|
||||
<field name="name">woo.sync.log.tree</field>
|
||||
<field name="model">woo.sync.log</field>
|
||||
<field name="arch" type="xml">
|
||||
<list create="0" edit="0">
|
||||
<field name="create_date" string="Date"/>
|
||||
<field name="instance_id"/>
|
||||
<field name="sync_type"/>
|
||||
<field name="direction"/>
|
||||
<field name="record_ref"/>
|
||||
<field name="state" widget="badge"
|
||||
decoration-success="state == 'success'"
|
||||
decoration-danger="state == 'failed'"
|
||||
decoration-warning="state == 'conflict'"/>
|
||||
<field name="message"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ===== Form View (read-only) ===== -->
|
||||
<record id="woo_sync_log_view_form" model="ir.ui.view">
|
||||
<field name="name">woo.sync.log.form</field>
|
||||
<field name="model">woo.sync.log</field>
|
||||
<field name="arch" type="xml">
|
||||
<form create="0" edit="0" delete="0">
|
||||
<sheet>
|
||||
<group>
|
||||
<group>
|
||||
<field name="create_date"/>
|
||||
<field name="instance_id"/>
|
||||
<field name="sync_type"/>
|
||||
<field name="direction"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="record_ref"/>
|
||||
<field name="state"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
</group>
|
||||
</group>
|
||||
<group string="Message">
|
||||
<field name="message" nolabel="1"/>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ===== Search View ===== -->
|
||||
<record id="woo_sync_log_view_search" model="ir.ui.view">
|
||||
<field name="name">woo.sync.log.search</field>
|
||||
<field name="model">woo.sync.log</field>
|
||||
<field name="arch" type="xml">
|
||||
<search>
|
||||
<field name="record_ref"/>
|
||||
<field name="message"/>
|
||||
<filter name="success" string="Success"
|
||||
domain="[('state', '=', 'success')]"/>
|
||||
<filter name="failed" string="Failed"
|
||||
domain="[('state', '=', 'failed')]"/>
|
||||
<filter name="conflict" string="Conflict"
|
||||
domain="[('state', '=', 'conflict')]"/>
|
||||
<separator/>
|
||||
<filter name="today" string="Today"
|
||||
domain="[('create_date', '>=', (context_today()).strftime('%Y-%m-%d'))]"/>
|
||||
<separator/>
|
||||
<filter name="group_sync_type" string="Sync Type"
|
||||
context="{'group_by': 'sync_type'}"/>
|
||||
<filter name="group_direction" string="Direction"
|
||||
context="{'group_by': 'direction'}"/>
|
||||
<filter name="group_instance" string="Instance"
|
||||
context="{'group_by': 'instance_id'}"/>
|
||||
<filter name="group_state" string="State"
|
||||
context="{'group_by': 'state'}"/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ===== Action ===== -->
|
||||
<record id="action_woo_sync_log" model="ir.actions.act_window">
|
||||
<field name="name">Sync Logs</field>
|
||||
<field name="res_model">woo.sync.log</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
<field name="search_view_id" ref="woo_sync_log_view_search"/>
|
||||
</record>
|
||||
|
||||
<!-- ===== Server Action: Purge Old Logs (appears in list view action menu) ===== -->
|
||||
<record id="action_purge_old_sync_logs" model="ir.actions.server">
|
||||
<field name="name">Purge Old Logs</field>
|
||||
<field name="model_id" ref="model_woo_sync_log"/>
|
||||
<field name="binding_model_id" ref="model_woo_sync_log"/>
|
||||
<field name="binding_view_types">list</field>
|
||||
<field name="state">code</field>
|
||||
<field name="code">action = records.action_purge_old_logs()</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
@@ -1,26 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<!-- ===== Tree View (editable inline) ===== -->
|
||||
<record id="woo_tax_map_view_tree" model="ir.ui.view">
|
||||
<field name="name">woo.tax.map.tree</field>
|
||||
<field name="model">woo.tax.map</field>
|
||||
<field name="arch" type="xml">
|
||||
<list editable="bottom">
|
||||
<field name="instance_id"/>
|
||||
<field name="tax_id"/>
|
||||
<field name="woo_tax_class"/>
|
||||
<field name="woo_tax_class_name"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ===== Action ===== -->
|
||||
<record id="action_woo_tax_map" model="ir.actions.act_window">
|
||||
<field name="name">Tax Mapping</field>
|
||||
<field name="res_model">woo.tax.map</field>
|
||||
<field name="view_mode">list</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user