flectra/addons/purchase/views/res_config_settings_views.xml
2018-04-12 18:28:20 +05:30

190 lines
12 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8"?>
<flectra>
<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">
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="po_order_approval"/>
</div>
<div class="o_setting_right_pane">
<label for="po_order_approval"/>
<span class="fa fa-lg fa-building-o" title="Values set here are company-specific." groups="base.group_multi_company"/>
<div class="text-muted">
Managers must approve orders
</div>
<div class="content-group" attrs="{'invisible': [('po_order_approval', '=', False)]}">
<div class="row mt16">
<label for="po_double_validation_amount" class="col-md-4 o_light_label"/>
<field name="po_double_validation_amount"/>
</div>
</div>
</div>
</div>
<div class="col-xs-12 col-md-6 o_setting_box" 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"/>
<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-xs-12 col-md-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="lock_confirmed_po"/>
</div>
<div class="o_setting_right_pane">
<label for="lock_confirmed_po"/>
<div class="text-muted">
No longer edit orders once confirmed
</div>
</div>
</div>
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="group_warning_purchase"/>
</div>
<div class="o_setting_right_pane">
<label for="group_warning_purchase"/>
<div class="text-muted">
Get warnings in orders for products or vendors
</div>
</div>
</div>
</div>
<h2>Invoicing</h2>
<div class="row mt16 o_settings_container">
<div class="col-xs-12 col-md-6 o_setting_box" 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"/>
<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>
<h2>Products</h2>
<div class="row mt16 o_settings_container">
<div class="col-xs-12 col-md-6 o_setting_box" title="By default, vendor prices can be set manually in the product detail form. If your vendors provide you with pricelist files, this option allows you to easily import them into the system from Purchase > Vendor Pricelists menu.">
<div class="o_setting_left_pane">
<field name="group_manage_vendor_price"/>
</div>
<div class="o_setting_right_pane">
<label for="group_manage_vendor_price"/>
<div class="text-muted">
Import vendor pricelists
</div>
<div class="content-group" attrs="{'invisible': [('group_manage_vendor_price', '=', False)]}">
<div class="mt16">
<a class="btn-link fa fa-arrow-right" target="_blank" href="https://www.flectra.com/documentation/user/11.0/general/base_import/import_faq.html">
How to import
</a>
</div>
</div>
</div>
</div>
</div>
<field name="is_installed_sale" invisible="1"/>
<h2 attrs="{'invisible': [('is_installed_sale', '=', False)]}">Logistics</h2>
<div class="row mt16 o_settings_container">
<div class="col-xs-12 col-md-6 o_setting_box" attrs="{'invisible': [('is_installed_sale', '=', False)]}" title="This adds a dropshipping route to apply on products in order to request your vendors to deliver to your customers. A product to dropship will generate a purchase request for quotation once the sales order confirmed. This is a on-demand flow. The requested delivery address will be the customer delivery address and not your warehouse.">
<div class="o_setting_left_pane">
<field name="module_stock_dropshipping"/>
</div>
<div class="o_setting_right_pane">
<label for="module_stock_dropshipping"/>
<div class="text-muted">
Request your vendors to deliver to your customers
</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'}</field>
</record>
<menuitem id="menu_purchase_general_settings" name="Settings" parent="menu_purchase_config"
sequence="0" action="action_purchase_configuration" groups="base.group_system"/>
<record id="res_config_settings_view_form_account" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.purchase.account</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="account.res_config_settings_view_form"/>
<field name="arch" type="xml">
<div id="account_budget" position="before">
<div class="col-xs-12 col-md-6 o_setting_box" title="Allows you to specify an analytic account on purchase order lines." groups="account.group_account_user">
<div class="o_setting_left_pane">
<field name="group_analytic_account_for_purchases" class="oe_inline"/>
</div>
<div class="o_setting_right_pane">
<label string="Purchase Analytics" for="group_analytic_account_for_purchases"/>
<div class="text-muted">
Set analytic accounts in purchase orders
</div>
</div>
</div>
</div>
</field>
</record>
<record id="res_config_settings_view_form_stock" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.purchase.stock</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="stock.res_config_settings_view_form"/>
<field name="arch" type="xml">
<div id="purchase_po_lead" position="replace">
<div class="col-xs-12 col-md-6 o_setting_box" title="Margin of error for vendor lead times. When the system generates Purchase Orders for reordering products,they will be scheduled that many days earlier to cope with unexpected vendor delays.">
<div class="o_setting_left_pane">
<field name="use_po_lead"/>
</div>
<div class="o_setting_right_pane">
<label for="use_po_lead"/>
<span class="fa fa-lg fa-building-o" title="Values set here are company-specific." groups="base.group_multi_company"/>
<div class="text-muted">
Schedule receivings earlier to avoid delays
</div>
<div class="content-group">
<div class="mt16" attrs="{'invisible': [('use_po_lead','=',False)]}">
<span>Move forward expected delivery dates by <field name="po_lead" class="oe_inline"/> days</span>
</div>
</div>
</div>
</div>
</div>
</field>
</record>
</flectra>