[FIX] stock: clean product's views indentation
Part-of: odoo/odoo#135502
This commit is contained in:
@@ -485,100 +485,100 @@
|
||||
|
||||
<!-- Stock Report View -->
|
||||
<record model="ir.ui.view" id="product_product_stock_tree">
|
||||
<field name="name">product.product.stock.tree</field>
|
||||
<field name="model">product.product</field>
|
||||
<field name="priority" eval="100"/>
|
||||
<field name="arch" type="xml">
|
||||
<tree sample="1" js_class="stock_report_list_view">
|
||||
<field name="id" column_invisible="True"/>
|
||||
<field name="display_name" string="Product"/>
|
||||
<field name="categ_id" optional="hide"/>
|
||||
<field name="qty_available" string="On Hand" sum="Total On Hand"/>
|
||||
<button name="%(action_view_inventory_tree)d" title="Inventory Adjustment" type="action" class="btn-link"
|
||||
icon="fa-pencil" context="{'search_default_product_id': id, 'default_product_id': id}"/>
|
||||
<field name="free_qty" string="Free to Use" sum="Total Free to Use"/>
|
||||
<field name="incoming_qty" optional="show" sum="Total Incoming"/>
|
||||
<field name="outgoing_qty" optional="show" sum="Total Outgoing"/>
|
||||
<field name="virtual_available" string="Forecasted" optional="hide" sum="Total Forecasted"/>
|
||||
<field name="uom_id" string="Unit" groups="uom.group_uom" options="{'no_create': True}"/>
|
||||
<button name="%(stock_move_line_action)d" string="History" type="action" class="btn-link"
|
||||
icon="fa-history" context="{'search_default_product_id': id, 'default_product_id': id}"/>
|
||||
<button name="action_view_orderpoints" string="Replenishment" type="object" class="btn-link"
|
||||
icon="fa-refresh" context="{'search_default_product_id': id, 'is_stock_report': True}" />
|
||||
<button name="%(action_view_quants)d" string="Locations" type="action" class="btn-link" groups="stock.group_stock_multi_locations"
|
||||
icon="fa-cubes" context="{'search_default_product_id': id, 'default_product_id': id}" invisible="qty_available == 0"/>
|
||||
<button name="action_product_forecast_report" string="Forecast" type="object" class="btn-link"
|
||||
icon="fa-area-chart" context="{'default_product_id': id}" invisible="incoming_qty == 0 and outgoing_qty == 0"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
<field name="name">product.product.stock.tree</field>
|
||||
<field name="model">product.product</field>
|
||||
<field name="priority" eval="100"/>
|
||||
<field name="arch" type="xml">
|
||||
<tree sample="1" js_class="stock_report_list_view">
|
||||
<field name="id" column_invisible="True"/>
|
||||
<field name="display_name" string="Product"/>
|
||||
<field name="categ_id" optional="hide"/>
|
||||
<field name="qty_available" string="On Hand" sum="Total On Hand"/>
|
||||
<button name="%(action_view_inventory_tree)d" title="Inventory Adjustment" type="action" class="btn-link"
|
||||
icon="fa-pencil" context="{'search_default_product_id': id, 'default_product_id': id}"/>
|
||||
<field name="free_qty" string="Free to Use" sum="Total Free to Use"/>
|
||||
<field name="incoming_qty" optional="show" sum="Total Incoming"/>
|
||||
<field name="outgoing_qty" optional="show" sum="Total Outgoing"/>
|
||||
<field name="virtual_available" string="Forecasted" optional="hide" sum="Total Forecasted"/>
|
||||
<field name="uom_id" string="Unit" groups="uom.group_uom" options="{'no_create': True}"/>
|
||||
<button name="%(stock_move_line_action)d" string="History" type="action" class="btn-link"
|
||||
icon="fa-history" context="{'search_default_product_id': id, 'default_product_id': id}"/>
|
||||
<button name="action_view_orderpoints" string="Replenishment" type="object" class="btn-link"
|
||||
icon="fa-refresh" context="{'search_default_product_id': id, 'is_stock_report': True}" />
|
||||
<button name="%(action_view_quants)d" string="Locations" type="action" class="btn-link" groups="stock.group_stock_multi_locations"
|
||||
icon="fa-cubes" context="{'search_default_product_id': id, 'default_product_id': id}" invisible="qty_available == 0"/>
|
||||
<button name="action_product_forecast_report" string="Forecast" type="object" class="btn-link"
|
||||
icon="fa-area-chart" context="{'default_product_id': id}" invisible="incoming_qty == 0 and outgoing_qty == 0"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="product_search_form_view_stock_report" model="ir.ui.view">
|
||||
<field name="name">product.product.search.stock.form.stock.report</field>
|
||||
<field name="model">product.product</field>
|
||||
<field name="mode">primary</field>
|
||||
<field name="inherit_id" ref="stock_product_search_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<filter name="services" position="attributes">
|
||||
<attribute name="invisible">1</attribute>
|
||||
</filter>
|
||||
<filter name="consumable" position="attributes">
|
||||
<attribute name="invisible">1</attribute>
|
||||
</filter>
|
||||
<filter name="real_stock_negative" position="after">
|
||||
<searchpanel>
|
||||
<field name="categ_id" icon="fa-filter" string="Category" select="multi"/>
|
||||
</searchpanel>
|
||||
</filter>
|
||||
</field>
|
||||
</record>
|
||||
<record id="product_search_form_view_stock_report" model="ir.ui.view">
|
||||
<field name="name">product.product.search.stock.form.stock.report</field>
|
||||
<field name="model">product.product</field>
|
||||
<field name="mode">primary</field>
|
||||
<field name="inherit_id" ref="stock_product_search_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<filter name="services" position="attributes">
|
||||
<attribute name="invisible">1</attribute>
|
||||
</filter>
|
||||
<filter name="consumable" position="attributes">
|
||||
<attribute name="invisible">1</attribute>
|
||||
</filter>
|
||||
<filter name="real_stock_negative" position="after">
|
||||
<searchpanel>
|
||||
<field name="categ_id" icon="fa-filter" string="Category" select="multi"/>
|
||||
</searchpanel>
|
||||
</filter>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="action_product_stock_view">
|
||||
<field name="name">Stock</field>
|
||||
<field name="res_model">product.product</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_id" ref="product_product_stock_tree"/>
|
||||
<field name="search_view_id" ref="product_search_form_view_stock_report"/>
|
||||
<field name="context">{'default_detailed_type': 'product'}</field>
|
||||
<field name="domain">[('detailed_type', '=', 'product')]</field>
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
No stock to show
|
||||
</p><p>
|
||||
Create some storable products to see their stock info in this view.
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window" id="action_product_stock_view">
|
||||
<field name="name">Stock</field>
|
||||
<field name="res_model">product.product</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_id" ref="product_product_stock_tree"/>
|
||||
<field name="search_view_id" ref="product_search_form_view_stock_report"/>
|
||||
<field name="context">{'default_detailed_type': 'product'}</field>
|
||||
<field name="domain">[('detailed_type', '=', 'product')]</field>
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
No stock to show
|
||||
</p><p>
|
||||
Create some storable products to see their stock info in this view.
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
<record id="product_template_action_product" model="ir.actions.act_window">
|
||||
<field name="name">Products</field>
|
||||
<field name="res_model">product.template</field>
|
||||
<field name="view_mode">kanban,tree,form</field>
|
||||
<field name="search_view_id" ref="product_template_search_form_view_stock"/>
|
||||
<field name="context">{"search_default_consumable": 1, 'default_detailed_type': 'product'}</field>
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
No product found. Let's create one!
|
||||
</p><p>
|
||||
Track your stock quantities by creating storable products.
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
<record id="product_template_action_product" model="ir.actions.act_window">
|
||||
<field name="name">Products</field>
|
||||
<field name="res_model">product.template</field>
|
||||
<field name="view_mode">kanban,tree,form</field>
|
||||
<field name="search_view_id" ref="product_template_search_form_view_stock"/>
|
||||
<field name="context">{"search_default_consumable": 1, 'default_detailed_type': 'product'}</field>
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
No product found. Let's create one!
|
||||
</p><p>
|
||||
Track your stock quantities by creating storable products.
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="stock_product_normal_action" model="ir.actions.act_window">
|
||||
<field name="name">Product Variants</field>
|
||||
<field name="res_model">product.product</field>
|
||||
<field name="view_mode">tree,form,kanban</field>
|
||||
<field name="search_view_id" ref="stock_product_search_form_view"/>
|
||||
</record>
|
||||
<record id="stock_product_normal_action" model="ir.actions.act_window">
|
||||
<field name="name">Product Variants</field>
|
||||
<field name="res_model">product.product</field>
|
||||
<field name="view_mode">tree,form,kanban</field>
|
||||
<field name="search_view_id" ref="stock_product_search_form_view"/>
|
||||
</record>
|
||||
|
||||
<menuitem id="menu_product_variant_config_stock" name="Products" action="product_template_action_product"
|
||||
parent="stock.menu_stock_inventory_control" sequence="1"/>
|
||||
<menuitem id="product_product_menu" name="Product Variants" action="stock_product_normal_action"
|
||||
parent="menu_stock_inventory_control" sequence="2" groups="product.group_product_variant"/>
|
||||
<menuitem id="menu_product_packagings" name="Product Packagings" parent="stock.menu_product_in_config_stock" action="product.action_packaging_view" groups="product.group_stock_packaging"/>
|
||||
<menuitem id="menu_product_stock" name="Stock" action="stock.action_product_stock_view"
|
||||
<menuitem id="menu_product_variant_config_stock" name="Products" action="product_template_action_product"
|
||||
parent="stock.menu_stock_inventory_control" sequence="1"/>
|
||||
<menuitem id="product_product_menu" name="Product Variants" action="stock_product_normal_action"
|
||||
parent="menu_stock_inventory_control" sequence="2" groups="product.group_product_variant"/>
|
||||
<menuitem id="menu_product_packagings" name="Product Packagings" parent="stock.menu_product_in_config_stock" action="product.action_packaging_view" groups="product.group_stock_packaging"/>
|
||||
<menuitem id="menu_product_stock" name="Stock" action="stock.action_product_stock_view"
|
||||
parent="stock.menu_warehouse_report" sequence="5"/>
|
||||
|
||||
</data>
|
||||
|
||||
Reference in New Issue
Block a user