| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
|
| 4 |
<record id="res_config_settings_view_form_inherit_sale" model="ir.ui.view"> |
| 5 |
<field name="name">res.config.settings.view.form.inherit.sale</field> |
| 6 |
<field name="model">res.config.settings</field> |
| 7 |
<field name="inherit_id" ref="sale.res_config_settings_view_form"/> |
| 8 |
<field name="arch" type="xml"> |
| 9 |
<!-- Remove customer accounts setting from sales settings tab --> |
| 10 |
<!-- It must not be in the view at all to make sure settings can be saved |
| 11 |
(because auth_signup_uninvited is specified as required) --> |
| 12 |
<setting id="auth_signup_documents" position="replace"/> |
| 13 |
</field> |
| 14 |
</record> |
| 15 |
|
| 16 |
<record id="res_config_settings_view_form" model="ir.ui.view"> |
| 17 |
<field name="name">res.config.settings.view.form.inherit.website.sale</field> |
| 18 |
<field name="model">res.config.settings</field> |
| 19 |
<field name="inherit_id" ref="website_payment.res_config_settings_view_form"/> |
| 20 |
<field name="arch" type="xml"> |
| 21 |
<setting id="shared_user_account_setting" position="after"> |
| 22 |
<setting |
| 23 |
id="autocomplete_googleplaces_setting" |
| 24 |
string="Google Address Validation" |
| 25 |
help="Use Google Places API to validate addresses" |
| 26 |
documentation="/applications/websites/website/configuration/address_autocomplete.html" |
| 27 |
> |
| 28 |
<field name="module_website_sale_autocomplete"/> |
| 29 |
</setting> |
| 30 |
</setting> |
| 31 |
<block id="website_payment_block" position="attributes"> |
| 32 |
<attribute name="title">eCommerce</attribute> |
| 33 |
</block> |
| 34 |
<block id="website_payment_block" position="inside"> |
| 35 |
<setting |
| 36 |
string="Configure Delivery Methods" |
| 37 |
id="website_delivery_setting" |
| 38 |
help="Configure delivery methods or work with delivery providers using existing integrations." |
| 39 |
documentation="/applications/inventory_and_mrp/inventory/shipping/setup/third_party_shipper.html" |
| 40 |
> |
| 41 |
<button |
| 42 |
string="Configure Methods" |
| 43 |
type="action" |
| 44 |
name="%(delivery.action_delivery_carrier_form)d" |
| 45 |
class="btn btn-primary" |
| 46 |
/> |
| 47 |
<button |
| 48 |
string="Find a Delivery Provider" |
| 49 |
type="object" |
| 50 |
name="action_view_delivery_provider_modules" |
| 51 |
class="btn btn-link" |
| 52 |
icon="oi-arrow-right" |
| 53 |
/> |
| 54 |
</setting> |
| 55 |
<setting string="Display Product Prices" id="website_tax_inclusion_setting"> |
| 56 |
<field |
| 57 |
name="show_line_subtotals_tax_selection" |
| 58 |
widget="radio" |
| 59 |
class="o_light_label" |
| 60 |
/> |
| 61 |
</setting> |
| 62 |
<setting |
| 63 |
id="ecommerce_access_setting" |
| 64 |
title="Shop, products, cart and wishlist visibility" |
| 65 |
> |
| 66 |
<field name="ecommerce_access" widget="radio" class="o_light_label"/> |
| 67 |
</setting> |
| 68 |
<setting |
| 69 |
string="Sign in/up at checkout" |
| 70 |
id="checkout_registration_setting" |
| 71 |
title="To send invitations in B2B mode, open a contact or select several ones |
| 72 |
in list view and click on 'Portal Access Management' option in the |
| 73 |
dropdown menu *Action*." |
| 74 |
> |
| 75 |
<field name="account_on_checkout" widget="radio"/> |
| 76 |
</setting> |
| 77 |
<setting |
| 78 |
string="Add to Cart" |
| 79 |
id="cart_redirect_setting" |
| 80 |
help="What should be done on "Add to Cart"?" |
| 81 |
> |
| 82 |
<field name="add_to_cart_action" widget="radio"/> |
| 83 |
</setting> |
| 84 |
<setting |
| 85 |
string="Invoicing Policy" |
| 86 |
id="invoicing_policy_setting" |
| 87 |
title="The mode selected here applies as invoicing policy of any new product |
| 88 |
created but not of products already existing." |
| 89 |
info="This setting is common to all websites." |
| 90 |
> |
| 91 |
<field name="default_invoice_policy" widget="radio" class="o_light_label"/> |
| 92 |
</setting> |
| 93 |
<setting |
| 94 |
id="automatic_invoice_generation_setting" |
| 95 |
help="Invoice automatically on payment." |
| 96 |
invisible="default_invoice_policy == 'delivery'" |
| 97 |
> |
| 98 |
<field name="automatic_invoice"/> |
| 99 |
<div invisible="not automatic_invoice"> |
| 100 |
<label for="invoice_mail_template_id" class="o_light_label me-2"/> |
| 101 |
<field name="invoice_mail_template_id" class="oe_inline"/> |
| 102 |
</div> |
| 103 |
</setting> |
| 104 |
<setting |
| 105 |
help="Add a strikethrough price, as a comparison" |
| 106 |
info="This setting is common to all websites." |
| 107 |
> |
| 108 |
<field name="group_product_price_comparison"/> |
| 109 |
</setting> |
| 110 |
<setting |
| 111 |
string="Product Reference Price" |
| 112 |
id="ecom_uom_price_option_setting" |
| 113 |
help="Add a reference price per UoM on products (i.e $/kg), in addition to the |
| 114 |
sale price" |
| 115 |
info="This setting is common to all websites." |
| 116 |
> |
| 117 |
<field name="group_show_uom_price"/> |
| 118 |
</setting> |
| 119 |
<setting |
| 120 |
string="Product Variants" |
| 121 |
id="product_attributes_setting" |
| 122 |
help="One product might have different attributes (size, color, etc.)" |
| 123 |
documentation="/applications/websites/ecommerce/managing_products/variants.html" |
| 124 |
> |
| 125 |
<field name="group_product_variant"/> |
| 126 |
<button |
| 127 |
string="Attributes" |
| 128 |
type="action" |
| 129 |
name="%(product.attribute_action)d" |
| 130 |
invisible="not group_product_variant" |
| 131 |
class="btn-link" |
| 132 |
icon="oi-arrow-right" |
| 133 |
/> |
| 134 |
</setting> |
| 135 |
<setting |
| 136 |
string="Discounts, Loyalty & Gift Card" |
| 137 |
id="wsale_loyalty_setting" |
| 138 |
title="Boost your sales with multiple kinds of programs: Coupons, Promotions, |
| 139 |
Gift Card, Loyalty. Specific conditions can be set (products, customers, |
| 140 |
minimum purchase amount, period). Rewards can be discounts (% or amount) |
| 141 |
or free products." |
| 142 |
help="Promotions, coupons, loyalty cards, gift cards & eWallet" |
| 143 |
documentation="/applications/sales/sales/products_prices/loyalty_discount.html" |
| 144 |
> |
| 145 |
<field name="module_loyalty" /> |
| 146 |
</setting> |
| 147 |
<setting |
| 148 |
id="pricelists_setting" |
| 149 |
help="Apply specific prices or currency per country, customer, products, etc." |
| 150 |
documentation="/applications/sales/sales/products_prices/prices/pricing.html" |
| 151 |
> |
| 152 |
<field name="group_product_pricelist"/> |
| 153 |
<button |
| 154 |
string="Pricelists" |
| 155 |
type="action" |
| 156 |
name="%(product.product_pricelist_action2)d" |
| 157 |
groups="product.group_product_pricelist" |
| 158 |
invisible="not group_product_pricelist" |
| 159 |
class="btn-link" |
| 160 |
icon="oi-arrow-right" |
| 161 |
/> |
| 162 |
</setting> |
| 163 |
<setting |
| 164 |
id="hide_add_to_cart_setting" |
| 165 |
help="If product price equals 0, replace 'Add to Cart' by 'Contact us'." |
| 166 |
> |
| 167 |
<field name="website_sale_prevent_zero_price_sale"/> |
| 168 |
<div class="content-group" invisible="not website_sale_prevent_zero_price_sale"> |
| 169 |
<div class="row mt16"> |
| 170 |
<label |
| 171 |
string="Button URL" |
| 172 |
for="website_sale_contact_us_button_url" |
| 173 |
class="o_light_label col-lg-3" |
| 174 |
/> |
| 175 |
<field name="website_sale_contact_us_button_url"/> |
| 176 |
</div> |
| 177 |
</div> |
| 178 |
</setting> |
| 179 |
<setting string="Order Confirmation" id="order_confirmation_setting"> |
| 180 |
<div class="content-group"> |
| 181 |
<div class="row mt16"> |
| 182 |
<label |
| 183 |
string="Email" |
| 184 |
for="confirmation_email_template_id" |
| 185 |
class="o_light_label col-lg-3" |
| 186 |
/> |
| 187 |
<field name="confirmation_email_template_id"/> |
| 188 |
</div> |
| 189 |
</div> |
| 190 |
</setting> |
| 191 |
<setting |
| 192 |
string="Follow up abandoned carts" |
| 193 |
id="abandoned_carts_setting" |
| 194 |
help="Automate abandoned checkout emails" |
| 195 |
documentation="/applications/websites/ecommerce/ecommerce_management/order_handling.html#abandoned-cart" |
| 196 |
> |
| 197 |
<field name="send_abandoned_cart_email"/> |
| 198 |
<div invisible="not send_abandoned_cart_email" class="content-group"> |
| 199 |
<div class="row mt16"> |
| 200 |
<div class="col-12"> |
| 201 |
<label |
| 202 |
string="Send after" |
| 203 |
for="cart_abandoned_delay" |
| 204 |
class="o_light_label" |
| 205 |
/> |
| 206 |
<field |
| 207 |
name="cart_abandoned_delay" |
| 208 |
widget="float_time" |
| 209 |
class="ms-1" |
| 210 |
style="width: 50px;" |
| 211 |
/> hours. |
| 212 |
</div> |
| 213 |
</div> |
| 214 |
</div> |
| 215 |
<div invisible="not send_abandoned_cart_email" class="mt8"> |
| 216 |
<button type="object" name="action_open_abandoned_cart_mail_template" string="Customize Abandoned Email Template" class="btn-link" icon="oi-arrow-right"/> |
| 217 |
</div> |
| 218 |
</setting> |
| 219 |
<setting string="Orders Assignment" help="Assignment of online orders"> |
| 220 |
<div class="content-group"> |
| 221 |
<div class="row mt16"> |
| 222 |
<label |
| 223 |
string="Sales Team" |
| 224 |
for="salesteam_id" |
| 225 |
class="o_light_label col-lg-3" |
| 226 |
/> |
| 227 |
<field |
| 228 |
name="salesteam_id" |
| 229 |
context="{'kanban_view_ref': 'sales_team.crm_team_view_kanban'}" |
| 230 |
/> |
| 231 |
</div> |
| 232 |
<div class="row"> |
| 233 |
<label for="salesperson_id" class="o_light_label col-lg-3"/> |
| 234 |
<field name="salesperson_id"/> |
| 235 |
</div> |
| 236 |
</div> |
| 237 |
</setting> |
| 238 |
<setting |
| 239 |
id="click_and_collect_setting" |
| 240 |
help="Allow customers to pick up their online purchases at your store and pay in person" |
| 241 |
documentation="/applications/websites/ecommerce/shipping.html#click-collect" |
| 242 |
> |
| 243 |
<field name="module_website_sale_collect"/> |
| 244 |
</setting> |
| 245 |
</block> |
| 246 |
<setting id="google_analytics_setting" position="after"> |
| 247 |
<setting |
| 248 |
id="google_merchant_center_setting" |
| 249 |
help="Connect your eCommerce via a product file." |
| 250 |
documentation="/applications/websites/ecommerce/google_merchant_center.html" |
| 251 |
> |
| 252 |
<field name="group_gmc_feed"/> |
| 253 |
<div class="mt8" invisible="not group_gmc_feed"> |
| 254 |
<button |
| 255 |
type="object" |
| 256 |
name="action_open_product_feeds" |
| 257 |
string="Manage feeds" |
| 258 |
class="btn-link" |
| 259 |
icon="oi-arrow-right" |
| 260 |
/> |
| 261 |
</div> |
| 262 |
</setting> |
| 263 |
</setting> |
| 264 |
</field> |
| 265 |
</record> |
| 266 |
</odoo> |