feat: move tax and pricelist mapping inline to Sync Settings tab

Tax mapping and pricelist mapping now live directly on the instance
form under Sync Settings. Added Fetch WC Tax Classes button that pulls
tax classes from WC API and auto-matches. Removed standalone menu items.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsinghpal
2026-04-01 16:58:01 -04:00
parent bc2bba14aa
commit 05c84d077d
4 changed files with 69 additions and 13 deletions

View File

@@ -83,6 +83,27 @@
<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>