Files
odoo_source/addons/purchase/views/res_config_settings_views.xml
T
IEL 3c7694b409 [FIX] *: fix image parsing error on saving res config
WHAT: apply 93a7695f65baf00d1f82481d6a2a97e6c11940a8 for all res.config.settings
menus

WHY: the same reason as in 93a7695f65baf00d1f82481d6a2a97e6c11940a8:

	When saving, a read is called. By default, read has
	bin_size to true to avoid performances issues.
	It will return the image size instead of the content

it may lead to image dissapearing or "Incorrect padding" error

HOW:

    find . -iname "*.xml"|xargs grep "\"context\".*'module'" -l | xargs sed -i "s/\(\"context\".*'module'.*\)\}/\1, 'bin_size': False}/"
    git checkout  -- addons/base_setup/views/res_config_settings_views.xml

---

PR for General Settings: https://github.com/odoo/odoo/pull/47297

opw-2346644

closes odoo/odoo#61215

X-original-commit: 7c55efa88b72bd1f3f0f32f7f738e2fda5aa4abd
Related: odoo/enterprise#14547
Signed-off-by: Ivan Yelizariev // IEL <yelizariev@users.noreply.github.com>
2020-11-02 18:25:20 +00:00

172 lines
11 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="res_config_settings_view_form_purchase" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.purchase</field>
<field name="model">res.config.settings</field>
<field name="priority" eval="25"/>
<field name="inherit_id" ref="base.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//div[hasclass('settings')]" position="inside">
<div class="app_settings_block" data-string="Purchase" string="Purchase" data-key="purchase" groups="purchase.group_purchase_manager">
<field name="po_double_validation" invisible="1"/>
<field name="company_currency_id" invisible="1"/>
<field name="po_lock" invisible="1"/>
<h2>Orders</h2>
<div class="row mt16 o_settings_container" name="purchase_setting_container">
<div class="col-12 col-lg-6 o_setting_box" id="po_order_approval">
<div class="o_setting_left_pane">
<field name="po_order_approval"/>
</div>
<div class="o_setting_right_pane">
<label for="po_order_approval"/>
<a href="https://www.odoo.com/documentation/user/14.0/purchase/purchases/rfq/approvals.html" title="Documentation" class="mr-2 o_doc_link" target="_blank"></a>
<span class="fa fa-lg fa-building-o" title="Values set here are company-specific." aria-label="Values set here are company-specific." groups="base.group_multi_company" role="img"/>
<div class="text-muted">
Request managers to approve orders above a minimum amount
</div>
<div class="content-group" attrs="{'invisible': [('po_order_approval', '=', False)]}">
<div class="row mt16">
<label for="po_double_validation_amount" class="col-lg-4 o_light_label"/>
<field name="po_double_validation_amount"/>
</div>
</div>
</div>
</div>
<div class="col-12 col-lg-6 o_setting_box" id="automatic_lock_confirmed_orders">
<div class="o_setting_left_pane">
<field name="lock_confirmed_po"/>
</div>
<div class="o_setting_right_pane">
<label for="lock_confirmed_po"/>
<a href="https://www.odoo.com/documentation/user/14.0/purchase/purchases/rfq/lock_orders.html" title="Documentation" class="o_doc_link" target="_blank"></a>
<div class="text-muted">
Automatically lock confirmed orders to prevent editing
</div>
</div>
</div>
<div class="col-12 col-lg-6 o_setting_box" id="get_order_warnings">
<div class="o_setting_left_pane">
<field name="group_warning_purchase"/>
</div>
<div class="o_setting_right_pane">
<label for="group_warning_purchase" string="Warnings"/>
<a href="https://www.odoo.com/documentation/user/14.0/purchase/purchases/rfq/warning.html" title="Documentation" class="o_doc_link" target="_blank"></a>
<div class="text-muted">
Get warnings in orders for products or vendors
</div>
</div>
</div>
<div class="col-12 col-lg-6 o_setting_box"
id="manage_purchase_agreements"
title="Calls for tenders are used when you want to generate requests for quotations to several vendors for a given set of products. You can configure per product if you directly do a Request for Quotation to one vendor or if you want a Call for Tenders to compare offers from several vendors.">
<div class="o_setting_left_pane">
<field name="module_purchase_requisition"/>
</div>
<div class="o_setting_right_pane">
<label for="module_purchase_requisition"/>
<a href="https://www.odoo.com/documentation/user/14.0/purchase/purchases/tender/call_for_tender.html" title="Documentation" class="o_doc_link" target="_blank"></a>
<div class="text-muted">
Manage your purchase agreements (call for tenders, blanket orders)
</div>
<div class="content-group" attrs="{'invisible': [('module_purchase_requisition', '=', False)]}">
<div id="use_purchase_requisition"/>
</div>
</div>
</div>
<div class="col-12 col-lg-6 o_setting_box" id="auto_receipt_reminder">
<div class="o_setting_left_pane">
<field name="group_send_reminder"/>
</div>
<div class="o_setting_right_pane">
<label for="group_send_reminder"/>
<div class="text-muted">
Automatically remind the receipt date to your vendors
</div>
</div>
</div>
</div>
<h2>Invoicing</h2>
<div class="row mt16 o_settings_container" name="invoicing_settings_container">
<div class="col-12 col-lg-6 o_setting_box" id="quantities_billed_vendor" title="This default value is applied to any new product created. This can be changed in the product detail form.">
<div class="o_setting_left_pane"/>
<div class="o_setting_right_pane">
<label for="default_purchase_method"/>
<a href="https://www.odoo.com/documentation/user/14.0/purchase/purchases/rfq/bills.html" title="Documentation" class="o_doc_link" target="_blank"></a>
<div class="text-muted">
Quantities billed by vendors
</div>
<div class="content-group">
<div class="mt16">
<field name="default_purchase_method" class="o_light_label" widget="radio"/>
</div>
</div>
</div>
</div>
<div class="col-12 col-lg-6 o_setting_box"
id="three_way_matching"
title="If enabled, activates 3-way matching on vendor bills : the items must be received in order to pay the invoice.">
<div class="o_setting_left_pane">
<field name="module_account_3way_match" string="3-way matching" widget="upgrade_boolean"/>
</div>
<div class="o_setting_right_pane">
<label for="module_account_3way_match"/>
<a href="https://www.odoo.com/documentation/user/14.0/purchase/purchases/rfq/3_way_matching.html" title="Documentation" class="o_doc_link" target="_blank"></a>
<div class="text-muted">
Make sure you only pay bills for which you received the goods you ordered
</div>
</div>
</div>
</div>
<h2>Products</h2>
<div class="row mt16 o_settings_container" name="matrix_setting_container">
<div class="col-12 col-lg-6 o_setting_box" id="variant_options">
<div class="o_setting_left_pane">
<field name="group_product_variant"/>
</div>
<div class="o_setting_right_pane">
<label for="group_product_variant"/>
<a href="https://www.odoo.com/documentation/user/14.0/sales/products_prices/products/variants.html" title="Documentation" class="o_doc_link" target="_blank"></a>
<div class="text-muted">
Purchase variants of a product using attributes (size, color, etc.)
</div>
<div class="content-group" attrs="{'invisible': [('group_product_variant','=',False)]}">
<div class="mt8">
<button name="%(product.attribute_action)d" icon="fa-arrow-right" type="action" string="Attributes" class="btn-link"/>
</div>
</div>
</div>
</div>
<div class="col-12 col-lg-6 o_setting_box"
id="product_matrix"
title="If installed, the product variants will be added to purchase orders through a grid entry.">
<div class="o_setting_left_pane">
<field name="module_purchase_product_matrix"/>
</div>
<div class="o_setting_right_pane">
<label for="module_purchase_product_matrix" string="Variant Grid Entry"/>
<div class="text-muted">
Add several variants to the purchase order from a grid
</div>
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
<record id="action_purchase_configuration" model="ir.actions.act_window">
<field name="name">Settings</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.config.settings</field>
<field name="view_mode">form</field>
<field name="target">inline</field>
<field name="context">{'module' : 'purchase', 'bin_size': False}</field>
</record>
<menuitem id="menu_purchase_general_settings" name="Settings" parent="menu_purchase_config"
sequence="0" action="action_purchase_configuration" groups="base.group_system"/>
</odoo>