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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user