addons-cm/website_sale_aplicoop/views/res_config_settings_views.xml
GitHub Copilot f81c1ca8e7 [IMP] website_sale_aplicoop: surface the tax display setting on the Eskaera page
Pricing now follows website_sale, which includes the website's `Display
Product Prices`. That setting defaults to tax-excluded in 18.0, so a website
nobody configured shows Eskaera prices without VAT -- correct behaviour, but
easy to read as a bug when the members are consumers and expect the price they
will pay.

The setting is a related field website_sale already exposes, so it now appears
in the Eskaera block too, right where the co-op switches the feature on, rather
than only under eCommerce.

Tests cover both values on the shop and the listing paths, so the tax-excluded
case is a decision on record instead of a surprise.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-17 19:13:57 +02:00

88 lines
4.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.aplicoop</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="website.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//block[@id='website_info_settings']" position="after">
<h2>Eskaera</h2>
<div class="row mt16 o_settings_container" id="eskaera_website_settings">
<div class="col-12 col-lg-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="eskaera_enabled"/>
</div>
<div class="o_setting_right_pane">
<label for="eskaera_enabled" string="Eskaera Group Orders"/>
<div class="text-muted">
Serve the collaborative purchasing pages on this
website. Turn it off on a website that only runs
the regular shop.
</div>
</div>
</div>
<div class="col-12 col-lg-6 o_setting_box" invisible="not eskaera_enabled">
<div class="o_setting_left_pane"/>
<div class="o_setting_right_pane">
<label for="show_line_subtotals_tax_selection" string="Product Prices"/>
<div class="text-muted">
Eskaera shows the same prices as the shop. Members
are consumers, so this is normally "Tax Included".
</div>
<div class="content-group">
<div class="mt16">
<field name="show_line_subtotals_tax_selection" class="o_light_label" widget="radio"/>
</div>
</div>
</div>
</div>
</div>
<h2>Shop Performance</h2>
<div class="row mt16 o_settings_container" id="eskaera_shop_settings">
<div class="col-12 col-lg-6 o_setting_box">
<div class="o_setting_left_pane"/>
<div class="o_setting_right_pane">
<label for="eskaera_lazy_loading_enabled" string="Enable Lazy Loading"/>
<div class="text-muted">
Load products in pages instead of all at once
</div>
<div class="content-group">
<div class="mt16">
<field name="eskaera_lazy_loading_enabled" class="oe_inline"/>
</div>
</div>
</div>
</div>
<div class="col-12 col-lg-6 o_setting_box">
<div class="o_setting_left_pane"/>
<div class="o_setting_right_pane">
<label for="eskaera_products_per_page" string="Products Per Page"/>
<div class="text-muted">
Number of products to load on initial page
</div>
<div class="content-group">
<div class="mt16">
<field name="eskaera_products_per_page" class="oe_inline"/>
</div>
</div>
</div>
</div>
<div class="col-12 col-lg-6 o_setting_box">
<div class="o_setting_left_pane"/>
<div class="o_setting_right_pane">
<label for="low_stock_threshold" string="Low Stock Threshold"/>
<div class="text-muted">
Products with stock ≤ this value show "Low Stock" ribbon. Stock = 0 shows "Out of Stock" ribbon.
</div>
<div class="content-group">
<div class="mt16">
<field name="low_stock_threshold" class="oe_inline"/>
</div>
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
</odoo>