102 lines
6.2 KiB
XML
102 lines
6.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="procurement_group_form_view_herited" model="ir.ui.view">
|
|
<field name="name">procurement.group.view.form.inherit.picking</field>
|
|
<field name="model">procurement.group</field>
|
|
<field name="inherit_id" ref="procurement.procurement_group_form_view"/>
|
|
<field name="arch" type="xml">
|
|
<div name="button_box" position="inside">
|
|
<button name="%(do_view_pickings)d" string="Pickings" type="action"/>
|
|
</div>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Procurements -->
|
|
|
|
<record id="view_procurement_form_stock_inherit" model="ir.ui.view">
|
|
<field name="name">procurement.order.form.stock.inherit</field>
|
|
<field name="model">procurement.order</field>
|
|
<field name="inherit_id" ref="procurement.procurement_form_view"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//group[@name='scheduling']" position="before">
|
|
<group>
|
|
<field name="warehouse_id"/>
|
|
<field name="location_id" domain="[('usage', '=', 'internal')]"/>
|
|
<field name="route_ids" widget="many2many_tags" groups="stock.group_adv_location"/>
|
|
</group>
|
|
</xpath>
|
|
<div name="button_box" position="inside">
|
|
<button name="do_view_pickings" class="oe_stat_button" icon="fa-bars" string="Group's Pickings" type="object"/>
|
|
</div>
|
|
<xpath expr="//field[@name='rule_id']" position="replace">
|
|
<field name="rule_id" domain="['|', ('location_id', '=', False), ('location_id', '=', location_id)]"/>
|
|
<field name="partner_dest_id"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
<record id="view_procurement_tree_stock_inherit" model="ir.ui.view">
|
|
<field name="name">procurement.order.tree.stock.inherit</field>
|
|
<field name="model">procurement.order</field>
|
|
<field name="inherit_id" ref="procurement.procurement_tree_view"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='origin']" position="before">
|
|
<field name="location_id"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
<record id="view_procurement_rule_tree_stock_inherit" model="ir.ui.view">
|
|
<field name="name">procurement.rule.tree.stock.inherit</field>
|
|
<field name="model">procurement.rule</field>
|
|
<field name="inherit_id" ref="procurement.view_procurement_rule_tree"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='action']" position="after">
|
|
<field name="picking_type_id"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_procurement_rule_form_stock_inherit" model="ir.ui.view">
|
|
<field name="name">procurement.rule.form.stock.inherit</field>
|
|
<field name="model">procurement.rule</field>
|
|
<field name="inherit_id" ref="procurement.view_procurement_rule_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//group[@name='general']" position="after">
|
|
<group>
|
|
<group string="Applied On">
|
|
<field name="location_id"/>
|
|
<field name="warehouse_id" groups="base.group_no_one"/>
|
|
</group>
|
|
<group string="Creates">
|
|
<field name="location_src_id" attrs="{'required': [('action', '=', 'move')], 'invisible':[('action', '!=', 'move')]}" domain="[('usage','!=','view')]"/>
|
|
<field name="procure_method" groups="stock.group_adv_location" attrs="{'invisible': [('action', '!=', 'move')]}"/>
|
|
<field name="picking_type_id" attrs="{'required': [('action', '!=', 'manufacture')]}"/>
|
|
<field name="partner_address_id" groups="stock.group_adv_location" context="{'show_address': 1}" options="{'always_reload': 1}" attrs="{'invisible': [('action', '!=', 'move')]}"/>
|
|
<label for="delay" string="Delay" groups="stock.group_adv_location" attrs="{'invisible': [('action', '!=', 'move')]}"/>
|
|
<div groups="stock.group_adv_location" attrs="{'invisible': [('action', '!=', 'move')]}">
|
|
<field name="delay" class="oe_inline"/>days
|
|
</div>
|
|
</group>
|
|
</group>
|
|
</xpath>
|
|
<xpath expr="//field[@name='group_id']" position="after">
|
|
<field name="propagate"/>
|
|
<field name="propagate_warehouse_id"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.actions.act_window" id="procrules">
|
|
<field name="context">{'search_default_route_false':1}</field>
|
|
<field name="name">Procurement Rules</field>
|
|
<field name="res_model">procurement.rule</field>
|
|
</record>
|
|
|
|
<!-- Procurements are located in Warehouse menu hierarchy, MRP users should come to Stock application to use it. -->
|
|
<menuitem id="menu_stock_sched" name="Schedulers" parent="stock.menu_stock_root" groups="group_stock_manager" sequence="50"/>
|
|
<menuitem action="action_procurement_compute" id="menu_procurement_compute" parent="menu_stock_sched" sequence="2" groups="base.group_no_one"/>
|
|
<menuitem action="procurement.action_compute_schedulers" id="menu_stock_proc_schedulers" parent="menu_stock_sched" sequence="1" groups="stock.group_stock_manager"/>
|
|
<menuitem id="menu_stock_procurement" name="Automatic Procurements" parent="stock.menu_stock_config_settings" sequence="5"/>
|
|
<menuitem action="procurement.procurement_order_action_exceptions" id="menu_stock_procurement_action" parent="stock.menu_warehouse_report" sequence="150" groups="stock.group_stock_manager"/>
|
|
<menuitem id="menu_procurement_rules" name="Global Procurement Rules" parent="stock.menu_routes_config" action="procrules" groups="base.group_no_one" sequence="3"/>
|
|
</odoo>
|