mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-26 14:12:04 +02:00
266 lines
13 KiB
XML
266 lines
13 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<record id="res_config_settings_view_form_inherit_sale" model="ir.ui.view">
|
|
<field name="name">res.config.settings.view.form.inherit.sale</field>
|
|
<field name="model">res.config.settings</field>
|
|
<field name="inherit_id" ref="sale.res_config_settings_view_form"/>
|
|
<field name="arch" type="xml">
|
|
<!-- Remove customer accounts setting from sales settings tab -->
|
|
<!-- It must not be in the view at all to make sure settings can be saved
|
|
(because auth_signup_uninvited is specified as required) -->
|
|
<setting id="auth_signup_documents" position="replace"/>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="res_config_settings_view_form" model="ir.ui.view">
|
|
<field name="name">res.config.settings.view.form.inherit.website.sale</field>
|
|
<field name="model">res.config.settings</field>
|
|
<field name="inherit_id" ref="website_payment.res_config_settings_view_form"/>
|
|
<field name="arch" type="xml">
|
|
<setting id="shared_user_account_setting" position="after">
|
|
<setting
|
|
id="autocomplete_googleplaces_setting"
|
|
string="Google Address Validation"
|
|
help="Use Google Places API to validate addresses"
|
|
documentation="/applications/websites/website/configuration/address_autocomplete.html"
|
|
>
|
|
<field name="module_website_sale_autocomplete"/>
|
|
</setting>
|
|
</setting>
|
|
<block id="website_payment_block" position="attributes">
|
|
<attribute name="title">eCommerce</attribute>
|
|
</block>
|
|
<block id="website_payment_block" position="inside">
|
|
<setting
|
|
string="Configure Delivery Methods"
|
|
id="website_delivery_setting"
|
|
help="Configure delivery methods or work with delivery providers using existing integrations."
|
|
documentation="/applications/inventory_and_mrp/inventory/shipping/setup/third_party_shipper.html"
|
|
>
|
|
<button
|
|
string="Configure Methods"
|
|
type="action"
|
|
name="%(delivery.action_delivery_carrier_form)d"
|
|
class="btn btn-primary"
|
|
/>
|
|
<button
|
|
string="Find a Delivery Provider"
|
|
type="object"
|
|
name="action_view_delivery_provider_modules"
|
|
class="btn btn-link"
|
|
icon="oi-arrow-right"
|
|
/>
|
|
</setting>
|
|
<setting string="Display Product Prices" id="website_tax_inclusion_setting">
|
|
<field
|
|
name="show_line_subtotals_tax_selection"
|
|
widget="radio"
|
|
class="o_light_label"
|
|
/>
|
|
</setting>
|
|
<setting
|
|
id="ecommerce_access_setting"
|
|
title="Shop, products, cart and wishlist visibility"
|
|
>
|
|
<field name="ecommerce_access" widget="radio" class="o_light_label"/>
|
|
</setting>
|
|
<setting
|
|
string="Sign in/up at checkout"
|
|
id="checkout_registration_setting"
|
|
title="To send invitations in B2B mode, open a contact or select several ones
|
|
in list view and click on 'Portal Access Management' option in the
|
|
dropdown menu *Action*."
|
|
>
|
|
<field name="account_on_checkout" widget="radio"/>
|
|
</setting>
|
|
<setting
|
|
string="Add to Cart"
|
|
id="cart_redirect_setting"
|
|
help="What should be done on "Add to Cart"?"
|
|
>
|
|
<field name="add_to_cart_action" widget="radio"/>
|
|
</setting>
|
|
<setting
|
|
string="Invoicing Policy"
|
|
id="invoicing_policy_setting"
|
|
title="The mode selected here applies as invoicing policy of any new product
|
|
created but not of products already existing."
|
|
info="This setting is common to all websites."
|
|
>
|
|
<field name="default_invoice_policy" widget="radio" class="o_light_label"/>
|
|
</setting>
|
|
<setting
|
|
id="automatic_invoice_generation_setting"
|
|
help="Invoice automatically on payment."
|
|
invisible="default_invoice_policy == 'delivery'"
|
|
>
|
|
<field name="automatic_invoice"/>
|
|
<div invisible="not automatic_invoice">
|
|
<label for="invoice_mail_template_id" class="o_light_label me-2"/>
|
|
<field name="invoice_mail_template_id" class="oe_inline"/>
|
|
</div>
|
|
</setting>
|
|
<setting
|
|
help="Add a strikethrough price, as a comparison"
|
|
info="This setting is common to all websites."
|
|
>
|
|
<field name="group_product_price_comparison"/>
|
|
</setting>
|
|
<setting
|
|
string="Product Reference Price"
|
|
id="ecom_uom_price_option_setting"
|
|
help="Add a reference price per UoM on products (i.e $/kg), in addition to the
|
|
sale price"
|
|
info="This setting is common to all websites."
|
|
>
|
|
<field name="group_show_uom_price"/>
|
|
</setting>
|
|
<setting
|
|
string="Product Variants"
|
|
id="product_attributes_setting"
|
|
help="One product might have different attributes (size, color, etc.)"
|
|
documentation="/applications/websites/ecommerce/managing_products/variants.html"
|
|
>
|
|
<field name="group_product_variant"/>
|
|
<button
|
|
string="Attributes"
|
|
type="action"
|
|
name="%(product.attribute_action)d"
|
|
invisible="not group_product_variant"
|
|
class="btn-link"
|
|
icon="oi-arrow-right"
|
|
/>
|
|
</setting>
|
|
<setting
|
|
string="Discounts, Loyalty & Gift Card"
|
|
id="wsale_loyalty_setting"
|
|
title="Boost your sales with multiple kinds of programs: Coupons, Promotions,
|
|
Gift Card, Loyalty. Specific conditions can be set (products, customers,
|
|
minimum purchase amount, period). Rewards can be discounts (% or amount)
|
|
or free products."
|
|
help="Promotions, coupons, loyalty cards, gift cards & eWallet"
|
|
documentation="/applications/sales/sales/products_prices/loyalty_discount.html"
|
|
>
|
|
<field name="module_loyalty" />
|
|
</setting>
|
|
<setting
|
|
id="pricelists_setting"
|
|
help="Apply specific prices or currency per country, customer, products, etc."
|
|
documentation="/applications/sales/sales/products_prices/prices/pricing.html"
|
|
>
|
|
<field name="group_product_pricelist"/>
|
|
<button
|
|
string="Pricelists"
|
|
type="action"
|
|
name="%(product.product_pricelist_action2)d"
|
|
groups="product.group_product_pricelist"
|
|
invisible="not group_product_pricelist"
|
|
class="btn-link"
|
|
icon="oi-arrow-right"
|
|
/>
|
|
</setting>
|
|
<setting
|
|
id="hide_add_to_cart_setting"
|
|
help="If product price equals 0, replace 'Add to Cart' by 'Contact us'."
|
|
>
|
|
<field name="website_sale_prevent_zero_price_sale"/>
|
|
<div class="content-group" invisible="not website_sale_prevent_zero_price_sale">
|
|
<div class="row mt16">
|
|
<label
|
|
string="Button URL"
|
|
for="website_sale_contact_us_button_url"
|
|
class="o_light_label col-lg-3"
|
|
/>
|
|
<field name="website_sale_contact_us_button_url"/>
|
|
</div>
|
|
</div>
|
|
</setting>
|
|
<setting string="Order Confirmation" id="order_confirmation_setting">
|
|
<div class="content-group">
|
|
<div class="row mt16">
|
|
<label
|
|
string="Email"
|
|
for="confirmation_email_template_id"
|
|
class="o_light_label col-lg-3"
|
|
/>
|
|
<field name="confirmation_email_template_id"/>
|
|
</div>
|
|
</div>
|
|
</setting>
|
|
<setting
|
|
string="Follow up abandoned carts"
|
|
id="abandoned_carts_setting"
|
|
help="Automate abandoned checkout emails"
|
|
documentation="/applications/websites/ecommerce/ecommerce_management/order_handling.html#abandoned-cart"
|
|
>
|
|
<field name="send_abandoned_cart_email"/>
|
|
<div invisible="not send_abandoned_cart_email" class="content-group">
|
|
<div class="row mt16">
|
|
<div class="col-12">
|
|
<label
|
|
string="Send after"
|
|
for="cart_abandoned_delay"
|
|
class="o_light_label"
|
|
/>
|
|
<field
|
|
name="cart_abandoned_delay"
|
|
widget="float_time"
|
|
class="ms-1"
|
|
style="width: 50px;"
|
|
/> hours.
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div invisible="not send_abandoned_cart_email" class="mt8">
|
|
<button type="object" name="action_open_abandoned_cart_mail_template" string="Customize Abandoned Email Template" class="btn-link" icon="oi-arrow-right"/>
|
|
</div>
|
|
</setting>
|
|
<setting string="Orders Assignment" help="Assignment of online orders">
|
|
<div class="content-group">
|
|
<div class="row mt16">
|
|
<label
|
|
string="Sales Team"
|
|
for="salesteam_id"
|
|
class="o_light_label col-lg-3"
|
|
/>
|
|
<field
|
|
name="salesteam_id"
|
|
context="{'kanban_view_ref': 'sales_team.crm_team_view_kanban'}"
|
|
/>
|
|
</div>
|
|
<div class="row">
|
|
<label for="salesperson_id" class="o_light_label col-lg-3"/>
|
|
<field name="salesperson_id"/>
|
|
</div>
|
|
</div>
|
|
</setting>
|
|
<setting
|
|
id="click_and_collect_setting"
|
|
help="Allow customers to pick up their online purchases at your store and pay in person"
|
|
documentation="/applications/websites/ecommerce/shipping.html#click-collect"
|
|
>
|
|
<field name="module_website_sale_collect"/>
|
|
</setting>
|
|
</block>
|
|
<setting id="google_analytics_setting" position="after">
|
|
<setting
|
|
id="google_merchant_center_setting"
|
|
help="Connect your eCommerce via a product file."
|
|
documentation="/applications/websites/ecommerce/google_merchant_center.html"
|
|
>
|
|
<field name="group_gmc_feed"/>
|
|
<div class="mt8" invisible="not group_gmc_feed">
|
|
<button
|
|
type="object"
|
|
name="action_open_product_feeds"
|
|
string="Manage feeds"
|
|
class="btn-link"
|
|
icon="oi-arrow-right"
|
|
/>
|
|
</div>
|
|
</setting>
|
|
</setting>
|
|
</field>
|
|
</record>
|
|
</odoo>
|