Hide unneeded "Automate orders" in orderpoint list view product_usability: add seller_id in tree/search view of product.product and product.template
51 lines
1.8 KiB
XML
51 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright 2014-2020 Akretion (http://www.akretion.com/)
|
|
@author Alexis de Lattre <alexis.delattre@akretion.com>
|
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
-->
|
|
|
|
<odoo>
|
|
|
|
|
|
<record id="view_warehouse_orderpoint_form" model="ir.ui.view">
|
|
<field name="model">stock.warehouse.orderpoint</field>
|
|
<field name="inherit_id" ref="stock.view_warehouse_orderpoint_form" />
|
|
<field name="arch" type="xml">
|
|
<field name="product_id" position="after">
|
|
<field name="trigger"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_warehouse_orderpoint_tree_editable" model="ir.ui.view">
|
|
<field name="model">stock.warehouse.orderpoint</field>
|
|
<field name="inherit_id" ref="stock.view_warehouse_orderpoint_tree_editable" />
|
|
<field name="arch" type="xml">
|
|
<field name="trigger" position="attributes">
|
|
<attribute name="optional">show</attribute>
|
|
</field>
|
|
<field name="route_id" position="attributes">
|
|
<attribute name="optional">show</attribute>
|
|
</field>
|
|
<!-- Button 'Automate Orders' is not needed because the user
|
|
can manually change the 'Trigger' field. And it takes a
|
|
lot of room in the tree view -->
|
|
<!-- TODO I tried many things to avoid a replace... but it didn't work -->
|
|
<button name="action_replenish_auto" position="replace"/>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_warehouse_orderpoint_tree_editable_config" model="ir.ui.view">
|
|
<field name="model">stock.warehouse.orderpoint</field>
|
|
<field name="inherit_id" ref="stock.view_warehouse_orderpoint_tree_editable_config" />
|
|
<field name="arch" type="xml">
|
|
<field name="trigger" position="attributes">
|
|
<attribute name="optional">show</attribute>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
</odoo>
|