72 lines
3.8 KiB
XML
72 lines
3.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="view_purchase_configuration" model="ir.ui.view">
|
|
<field name="name">purchase.res.config.view</field>
|
|
<field name="model">purchase.config.settings</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Configure Purchases" class="oe_form_configuration">
|
|
<header>
|
|
<button string="Apply" type="object" name="execute" class="oe_highlight"/>
|
|
<button string="Cancel" type="object" name="cancel" class="oe_link" special="cancel"/>
|
|
</header>
|
|
<group string="Logistics">
|
|
<group>
|
|
<field name="company_id" invisible="1"/>
|
|
<field name="company_currency_id" invisible="1"/>
|
|
<field name="po_lead"/>
|
|
<field name="po_lock" widget="radio"/>
|
|
<field name="po_double_validation" widget="radio"/>
|
|
<field name="po_double_validation_amount" attrs="{'invisible': [('po_double_validation', '=', 'one_step')]}"/>
|
|
</group>
|
|
</group>
|
|
<group string="Purchase Order">
|
|
<field name="group_product_variant" widget="radio"/>
|
|
<field name="group_uom" widget="radio"/>
|
|
<field name="group_costing_method" widget="radio"/>
|
|
<field name="module_purchase_requisition" widget="radio"/>
|
|
<field name="group_manage_vendor_price" widget="radio"/>
|
|
<field name="group_warning_purchase" widget="radio"/>
|
|
</group>
|
|
<group string="Location & Warehouse">
|
|
<field name="module_stock_dropshipping" widget="radio"/>
|
|
</group>
|
|
<div>
|
|
<span>(*) This configuration is related to the company you're logged into.</span>
|
|
</div>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_purchase_configuration" model="ir.actions.act_window">
|
|
<field name="name">Configure Purchases</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">purchase.config.settings</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="target">inline</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="view_account_config" model="ir.ui.view">
|
|
<field name="name">account settings</field>
|
|
<field name="model">account.config.settings</field>
|
|
<field name="inherit_id" ref="account.view_account_config_settings"/>
|
|
<field name="priority" eval="18"/>
|
|
<field name="arch" type="xml">
|
|
<separator name="analytic_account" position="attributes">
|
|
<attribute name="invisible">0</attribute>
|
|
</separator>
|
|
<group name="analytic_account_purchase" position="attributes">
|
|
<attribute name="invisible">0</attribute>
|
|
</group>
|
|
<xpath expr="//group[@name='analytic_account_purchase']" position="inside">
|
|
<div>
|
|
<field name="group_analytic_account_for_purchases" class="oe_inline"/>
|
|
<label for="group_analytic_account_for_purchases"/>
|
|
</div>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|