| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <odoo> |
| 3 | |
| 4 | <record id="res_config_settings_view_form" 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="priority" eval="10"/> |
| 8 | <field name="inherit_id" ref="base.res_config_settings_view_form"/> |
| 9 | <field name="arch" type="xml"> |
| 10 | <xpath expr="//form" position="inside"> |
| 11 | <app notApp="1" string="Sales" data-string="Sales" name="sale_management" groups="sales_team.group_sale_manager"> |
| 12 | <block title="Product Catalog" name="catalog_setting_container"> |
| 13 | <setting id="variant_options" help="Sell variants of a product using attributes (size, color, etc.)" documentation="/applications/sales/sales/products_prices/products/variants.html"> |
| 14 | <field name="group_product_variant"/> |
| 15 | <div class="content-group" invisible="not group_product_variant"> |
| 16 | <div class="mt8"> |
| 17 | <button name="%(product.attribute_action)d" icon="oi-arrow-right" type="action" string="Attributes" class="btn-link"/> |
| 18 | </div> |
| 19 | </div> |
| 20 | </setting> |
| 21 | <setting string="Variant Grid Entry" help="Add several variants to an order from a grid" id="product_matrix"> |
| 22 | <field name="module_sale_product_matrix"/> |
| 23 | </setting> |
| 24 | <setting id="uom_settings" help="Sell and purchase products in different units of measure or packagings"> |
| 25 | <field name="group_uom"/> |
| 26 | <div class="content-group" invisible="not group_uom"> |
| 27 | <div class="mt8"> |
| 28 | <button name="%(uom.product_uom_form_action)d" icon="oi-arrow-right" type="action" string="Units & Packagings" class="btn-link"/> |
| 29 | </div> |
| 30 | </div> |
| 31 | </setting> |
| 32 | <setting id="email_template" title="Sending an email is useful if you need to share specific information or content about a product (instructions, rules, links, media, etc.). Create and set the email template from the product detail form (in Accounting tab)." string="Deliver Content by Email" help="Send a product-specific email once the invoice is validated"> |
| 33 | <field name="module_product_email_template"/> |
| 34 | </setting> |
| 35 | </block> |
| 36 | <block title="Pricing" id="pricing_setting_container"> |
| 37 | <setting id="discount_sale_order_lines" title="Apply manual discounts on sales order lines or display discounts computed from pricelists (option to activate in the pricelist configuration)." help="Grant discounts on sales order lines"> |
| 38 | <field name="group_discount_per_so_line"/> |
| 39 | </setting> |
| 40 | <setting id="coupon_settings" 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." string="Promotions, Loyalty & Gift Card" help="Manage Promotions, Coupons, Loyalty cards, Gift cards & eWallet"> |
| 41 | <field name="module_loyalty"/> |
| 42 | </setting> |
| 43 | <setting id="pricelist_configuration" documentation="/applications/sales/sales/products_prices/prices/pricing.html" help="Set multiple prices per product, automated discounts, etc."> |
| 44 | <field name="group_product_pricelist"/> |
| 45 | <div class="content-group" invisible="not group_product_pricelist"> |
| 46 | <div class="mt16"> |
| 47 | <button name="%(product.product_pricelist_action2)d" icon="oi-arrow-right" type="action" string="Pricelists" groups="product.group_product_pricelist" class="btn-link"/> |
| 48 | </div> |
| 49 | </div> |
| 50 | </setting> |
| 51 | <setting id="auth_signup_documents" 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*." help="Let your customers log in to see their documents"> |
| 52 | <field name="auth_signup_uninvited" class="o_light_label" widget="radio" options="{'horizontal': true}" required="True"/> |
| 53 | </setting> |
| 54 | <setting id="show_margins" help="Show margins on orders" title="The margin is computed as the sum of product sales prices minus the cost set in their detail form."> |
| 55 | <field name="module_sale_margin"/> |
| 56 | </setting> |
| 57 | </block> |
| 58 | <block title="Quotations & Orders" name="quotation_order_setting_container"> |
| 59 | <setting id="online_signature" company_dependent="1" |
| 60 | documentation="/applications/sales/sales/send_quotations/get_signature_to_validate.html" |
| 61 | help="Request customers to sign quotations to validate orders. The default can be changed per order or template."> |
| 62 | <field name="portal_confirmation_sign"/> |
| 63 | </setting> |
| 64 | <setting id="online_payment" company_dependent="1" |
| 65 | documentation="/applications/sales/sales/send_quotations/get_paid_to_validate.html" |
| 66 | help="Request a payment to confirm orders, in full (100%) or partial. The default can be changed per order or template."> |
| 67 | <field name="portal_confirmation_pay"/> |
| 68 | <div invisible="not portal_confirmation_pay" class="oe_row fw-bold"> |
| 69 | Payment |
| 70 | <field name="prepayment_percent" widget="percentage" class="oe_inline"/> |
| 71 | </div> |
| 72 | <div |
| 73 | class="row mt8" |
| 74 | invisible="not portal_confirmation_pay or active_provider_id" |
| 75 | > |
| 76 | <div invisible="not onboarding_payment_module" class="oe_inline"> |
| 77 | <button |
| 78 | type="object" |
| 79 | name="action_sale_start_payment_onboarding" |
| 80 | class="btn-primary" |
| 81 | > |
| 82 | Activate |
| 83 | <field |
| 84 | name="onboarding_payment_module" |
| 85 | nolabel="1" |
| 86 | class="oe_inline" |
| 87 | /> |
| 88 | </button> |
| 89 | </div> |
| 90 | <div |
| 91 | title="Stripe Connect is not available in your country, please use another payment provider." |
| 92 | invisible="onboarding_payment_module" |
| 93 | class="oe_inline" |
| 94 | > |
| 95 | <button |
| 96 | string="Activate Stripe" class="btn btn-primary" disabled="" |
| 97 | /> |
| 98 | </div> |
| 99 | <button |
| 100 | string="View Alternatives" |
| 101 | type="action" |
| 102 | name='%(payment.action_payment_provider)d' |
| 103 | icon="oi-arrow-right" |
| 104 | class="btn btn-link oe_inline" |
| 105 | /> |
| 106 | </div> |
| 107 | <div |
| 108 | class="mt8" |
| 109 | invisible="not portal_confirmation_pay or not active_provider_id" |
| 110 | > |
| 111 | <button |
| 112 | type="object" |
| 113 | name="action_view_active_provider" |
| 114 | class="btn btn-primary col-auto" |
| 115 | > |
| 116 | Configure |
| 117 | <field |
| 118 | name="active_provider_id" |
| 119 | class="oe_inline" |
| 120 | nolabel="1" |
| 121 | options="{'no_open': True}" |
| 122 | /> |
| 123 | </button> |
| 124 | <button |
| 125 | string="View Other Providers" |
| 126 | type="action" |
| 127 | name="%(payment.action_payment_provider)d" |
| 128 | icon="oi-arrow-right" |
| 129 | class="btn btn-link col-auto" |
| 130 | /> |
| 131 | </div> |
| 132 | </setting> |
| 133 | <setting id="quotation_validity_days"> |
| 134 | <div title="Days between quotation proposal and expiration. 0 days means automatic expiration is disabled"> |
| 135 | <label for="quotation_validity_days"/> |
| 136 | <field name="quotation_validity_days" class="text-center" style="width: 3rem;"/> |
| 137 | <div class="d-inline-block">days</div> |
| 138 | <span class="fa fa-lg fa-building-o p-2" |
| 139 | title="Values set here are company-specific." |
| 140 | groups="base.group_multi_company"/> |
| 141 | </div> |
| 142 | <div class="text-muted"> |
| 143 | Default period during which the quote is valid and can still be accepted by the customer. The default can be changed per order or template. |
| 144 | </div> |
| 145 | </setting> |
| 146 | <setting id="order_warnings" string="Sale Warnings" help="Get warnings in orders for products or customers"> |
| 147 | <field name="group_warning_sale"/> |
| 148 | </setting> |
| 149 | <setting id="sale_pdf_quote_builder" string="PDF Quote builder" help="Make your quote attractive by adding header pages, product descriptions and footer pages to your quote."> |
| 150 | <field name="module_sale_pdf_quote_builder"/> |
| 151 | <div class="mt8" name="sale_pdf_module_settings" invisible="not module_sale_pdf_quote_builder"/> |
| 152 | </setting> |
| 153 | <setting id="no_edit_order" help="No longer edit orders once confirmed"> |
| 154 | <field name="group_auto_done_setting"/> |
| 155 | </setting> |
| 156 | <setting id="proforma_configuration" help="Allows you to send Pro-Forma Invoice to your customers"> |
| 157 | <field name="group_proforma_sales"/> |
| 158 | </setting> |
| 159 | </block> |
| 160 | <block title="Shipping" name="sale_shipping_setting_container"> |
| 161 | <setting id="delivery" help="Compute shipping costs on orders"> |
| 162 | <field name="module_delivery"/> |
| 163 | </setting> |
| 164 | <setting id="ups"> |
| 165 | <div class="o_form_label">UPS Connector</div> |
| 166 | <a href="https://www.odoo.com/documentation/latest/applications/inventory_and_mrp/inventory/shipping/setup/third_party_shipper.html" title="Documentation" class="o_doc_link" target="_blank"></a> |
| 167 | <div class="text-muted"> |
| 168 | Compute shipping costs and ship with UPS<br/> |
| 169 | <strong>(please go to Home>Apps to install)</strong> |
| 170 | </div> |
| 171 | </setting> |
| 172 | <setting id="shipping_costs_dhl"> |
| 173 | <div class="o_form_label">DHL Connector</div> |
| 174 | <a href="https://www.odoo.com/documentation/latest/applications/inventory_and_mrp/inventory/shipping/setup/third_party_shipper.html" title="Documentation" class="o_doc_link" target="_blank"></a> |
| 175 | <div class="text-muted"> |
| 176 | Compute shipping costs and ship with DHL<br/> |
| 177 | <strong>(please go to Home>Apps to install)</strong> |
| 178 | </div> |
| 179 | </setting> |
| 180 | <setting id="shipping_costs_fedex"> |
| 181 | <div class="o_form_label">FedEx Connector</div> |
| 182 | <a href="https://www.odoo.com/documentation/latest/applications/inventory_and_mrp/inventory/shipping/setup/third_party_shipper.html" title="Documentation" class="o_doc_link" target="_blank"></a> |
| 183 | <div class="text-muted"> |
| 184 | Compute shipping costs and ship with FedEx<br/> |
| 185 | <strong>(please go to Home>Apps to install)</strong> |
| 186 | </div> |
| 187 | </setting> |
| 188 | <setting id="shipping_costs_usps"> |
| 189 | <div class="o_form_label">USPS Connector</div> |
| 190 | <a href="https://www.odoo.com/documentation/latest/applications/inventory_and_mrp/inventory/shipping/setup/third_party_shipper.html" title="Documentation" class="o_doc_link" target="_blank"></a> |
| 191 | <div class="text-muted"> |
| 192 | Compute shipping costs and ship with USPS<br/> |
| 193 | <strong>(please go to Home>Apps to install)</strong> |
| 194 | </div> |
| 195 | </setting> |
| 196 | <setting id="shipping_costs_bpost" help="Compute shipping costs and ship with bpost" |
| 197 | documentation="/applications/inventory_and_mrp/inventory/shipping/setup/third_party_shipper.html"> |
| 198 | <field name="module_delivery_bpost" widget="upgrade_boolean"/> |
| 199 | </setting> |
| 200 | <setting id="shipping_costs_easypost" help="Compute shipping costs and ship with Easypost" |
| 201 | documentation="/applications/inventory_and_mrp/inventory/shipping/setup/third_party_shipper.html"> |
| 202 | <field name="module_delivery_easypost" widget="upgrade_boolean"/> |
| 203 | </setting> |
| 204 | <setting id="shipping_costs_sendcloud" help="Compute shipping costs and ship with Sendcloud" |
| 205 | documentation="/applications/inventory_and_mrp/inventory/shipping/setup/third_party_shipper.html"> |
| 206 | <field name="module_delivery_sendcloud" widget="upgrade_boolean"/> |
| 207 | </setting> |
| 208 | <setting id="shipping_costs_shiprocket" help="Compute shipping costs and ship with Shiprocket" |
| 209 | documentation="/applications/inventory_and_mrp/inventory/shipping/setup/third_party_shipper.html"> |
| 210 | <field name="module_delivery_shiprocket" widget="upgrade_boolean"/> |
| 211 | </setting> |
| 212 | <setting id="shipping_costs_starshipit" help="Compute shipping costs and ship with Starshipit" |
| 213 | documentation="/applications/inventory_and_mrp/inventory/shipping/setup/third_party_shipper.html"> |
| 214 | <field name="module_delivery_starshipit" widget="upgrade_boolean"/> |
| 215 | </setting> |
| 216 | <setting id="shipping_costs_envia" help="Compute shipping costs and ship with Envia.com" |
| 217 | documentation="/applications/inventory_and_mrp/inventory/shipping/setup/third_party_shipper.html"> |
| 218 | <field name="module_delivery_envia" widget="upgrade_boolean"/> |
| 219 | </setting> |
| 220 | </block> |
| 221 | <block title="Invoicing" name="invoicing_setting_container"> |
| 222 | <setting id="sales_settings_invoicing_policy" title="This default value is applied to any new product created. This can be changed in the product detail form." documentation="/applications/sales/sales/invoicing/invoicing_policy.html" help="Quantities to invoice from sales orders"> |
| 223 | <field name="default_invoice_policy" class="o_light_label" widget="radio"/> |
| 224 | </setting> |
| 225 | <setting id="automatic_invoicing" help="Generate the invoice automatically when the online payment is confirmed" invisible="default_invoice_policy != 'order' or not portal_confirmation_pay"> |
| 226 | <field name="automatic_invoice"/> |
| 227 | <div invisible="not automatic_invoice" groups="base.group_no_one"> |
| 228 | <label for="invoice_mail_template_id" class="o_light_label me-2"/> |
| 229 | <field name="invoice_mail_template_id" class="oe_inline" options="{'no_create': True}"/> |
| 230 | </div> |
| 231 | </setting> |
| 232 | <setting id="setting_commission" help="Manage Sales & teams targets and commissions"> |
| 233 | <field name="module_sale_commission" widget="upgrade_boolean"/> |
| 234 | </setting> |
| 235 | </block> |
| 236 | <block title="Connectors" id="connectors_setting_container"> |
| 237 | <setting id="amazon_connector" documentation="/applications/sales/sales/amazon_connector/setup.html" help="Import Amazon orders and sync deliveries"> |
| 238 | <field name="module_sale_amazon" widget="upgrade_boolean"/> |
| 239 | <div class="content-group" name="amazon_connector" invisible="not module_sale_amazon"/> |
| 240 | </setting> |
| 241 | <setting |
| 242 | id="gelato" |
| 243 | documentation="/applications/sales/sales/gelato.html" |
| 244 | help="Place orders through Gelato's print-on-demand service" |
| 245 | > |
| 246 | <field name="module_sale_gelato"/> |
| 247 | <div |
| 248 | class="content-group" |
| 249 | name="gelato_credentials" |
| 250 | invisible="not module_sale_gelato" |
| 251 | /> |
| 252 | </setting> |
| 253 | <setting id="shopee_connector" help="Import Shopee orders and sync deliveries"> |
| 254 | <field name="module_sale_shopee" widget="upgrade_boolean"/> |
| 255 | </setting> |
| 256 | </block> |
| 257 | </app> |
| 258 | </xpath> |
| 259 | </field> |
| 260 | </record> |
| 261 | |
| 262 | <record id="res_config_settings_view_form_sale_inherit" model="ir.ui.view"> |
| 263 | <field name="name">res.config.settings.view.form.inherit.sale</field> |
| 264 | <field name="model">res.config.settings</field> |
| 265 | <field name="inherit_id" ref="account.res_config_settings_view_form"/> |
| 266 | <field name="arch" type="xml"> |
| 267 | <xpath expr="//setting[@id='product_accounts']" position="inside"> |
| 268 | <div class="row mt8"> |
| 269 | <label for="downpayment_account_id" class="col-lg-5 o_light_label"/> |
| 270 | <field name="downpayment_account_id"/> |
| 271 | </div> |
| 272 | </xpath> |
| 273 | </field> |
| 274 | </record> |
| 275 | |
| 276 | <record id="action_sale_config_settings" model="ir.actions.act_window"> |
| 277 | <field name="name">Settings</field> |
| 278 | <field name="res_model">res.config.settings</field> |
| 279 | <field name="view_id" ref="res_config_settings_view_form"/> |
| 280 | <field name="view_mode">form</field> |
| 281 | <field name="context">{'module' : 'sale_management', 'bin_size': False}</field> |
| 282 | </record> |
| 283 | |
| 284 | </odoo> |