fix: move variant push button inline with Odoo Product name
Removed separate Variants column — button now appears right next to the Odoo product name so it's visible without scrolling. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -155,7 +155,6 @@
|
||||
<th>Cost</th>
|
||||
<th>Margin %</th>
|
||||
<th>Instance</th>
|
||||
<th>Variants</th>
|
||||
<th>Price Sync</th>
|
||||
<th>Inventory Sync</th>
|
||||
</tr>
|
||||
@@ -209,7 +208,23 @@
|
||||
</t>
|
||||
<t t-else=""><span class="woo-code"><t t-esc="p.odoo_default_code"/></span></t>
|
||||
</td>
|
||||
<td><t t-esc="p.odoo_product_name"/></td>
|
||||
<td>
|
||||
<t t-esc="p.odoo_product_name"/>
|
||||
<t t-if="p.needs_variant_push">
|
||||
<button class="woo-btn woo-btn-primary woo-btn-sm ms-2"
|
||||
t-on-click.stop="() => this.pushVariantsToWC(p.id)"
|
||||
title="Push Odoo variants to WooCommerce">
|
||||
<i class="fa fa-sitemap me-1"/>
|
||||
Push <t t-esc="p.odoo_variant_count"/> variants
|
||||
</button>
|
||||
</t>
|
||||
<t t-elif="p.odoo_variant_count > 1 and !p.is_variation">
|
||||
<span class="woo-badge woo-badge-mapped ms-2">
|
||||
<i class="fa fa-sitemap me-1"/>
|
||||
<t t-esc="p.odoo_variant_count"/> synced
|
||||
</span>
|
||||
</t>
|
||||
</td>
|
||||
<td class="text-end woo-editable-cell" t-on-click.stop="() => this.startEdit(p.id, 'woo_regular', p.woo_regular_price)">
|
||||
<t t-if="this.isEditing(p.id, 'woo_regular')">
|
||||
<input type="number" step="0.01" min="0" class="woo-edit-input"
|
||||
@@ -281,21 +296,6 @@
|
||||
<t t-else="" t-esc="this.formatMargin(p.odoo_cost, p.odoo_price)"/>
|
||||
</td>
|
||||
<td><t t-esc="p.instance_name"/></td>
|
||||
<td class="text-center">
|
||||
<t t-if="p.needs_variant_push">
|
||||
<button class="woo-btn woo-btn-primary woo-btn-sm"
|
||||
t-on-click.stop="() => this.pushVariantsToWC(p.id)"
|
||||
title="Push Odoo variants to WooCommerce">
|
||||
<i class="fa fa-sitemap me-1"/>
|
||||
<t t-esc="p.odoo_variant_count"/> variants
|
||||
</button>
|
||||
</t>
|
||||
<t t-elif="p.odoo_variant_count > 1 and !p.is_variation">
|
||||
<span class="woo-badge woo-badge-mapped">
|
||||
<t t-esc="p.odoo_variant_count"/> synced
|
||||
</span>
|
||||
</t>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox"
|
||||
t-att-checked="p.sync_price"
|
||||
|
||||
Reference in New Issue
Block a user