mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
pre-commit update
This commit is contained in:
@@ -1,86 +1,96 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
|
||||
<record id="view_stock_product_template_tree" model="ir.ui.view">
|
||||
<field name="name">product.template.stock.tree.inherit</field>
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id"
|
||||
ref="stock.view_stock_product_template_tree"/>
|
||||
<field name="inherit_id" ref="stock.view_stock_product_template_tree" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="qty_available" position="after">
|
||||
<field name="qty_available_not_res"/>
|
||||
<field name="qty_available_not_res" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="product_template_search_form_view_stock" model="ir.ui.view">
|
||||
<field name="name">product.template.search.stock.form.inherit</field>
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id" ref="stock.product_template_search_form_view_stock"/>
|
||||
<field name="inherit_id" ref="stock.product_template_search_form_view_stock" />
|
||||
<field name="arch" type="xml">
|
||||
<filter name="real_stock_available" position="after">
|
||||
<filter name="real_stock_unreserved" string="Reservable Products" domain="[('qty_available_not_res','>',0)]"/>
|
||||
<filter
|
||||
name="real_stock_unreserved"
|
||||
string="Reservable Products"
|
||||
domain="[('qty_available_not_res','>',0)]"
|
||||
/>
|
||||
</filter>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="product_template_kanban_stock_view" model="ir.ui.view">
|
||||
<field name="name">Product Template Kanban Stock</field>
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id"
|
||||
ref="stock.product_template_kanban_stock_view"/>
|
||||
<field name="inherit_id" ref="stock.product_template_kanban_stock_view" />
|
||||
<field name="arch" type="xml">
|
||||
<ul position="inside">
|
||||
<li t-if="record.type.raw_value == 'product'">Unreserved: <field name="qty_available_not_res"/> <field name="uom_id"/></li>
|
||||
<li t-if="record.type.raw_value == 'product'">Unreserved: <field
|
||||
name="qty_available_not_res"
|
||||
/> <field name="uom_id" /></li>
|
||||
</ul>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_stock_product_tree" model="ir.ui.view">
|
||||
<field name="name">product.stock.tree.inherit</field>
|
||||
<field name="model">product.product</field>
|
||||
<field name="inherit_id" ref="stock.view_stock_product_tree"/>
|
||||
<field name="inherit_id" ref="stock.view_stock_product_tree" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="qty_available" position="after">
|
||||
<field name="qty_available_not_res"/>
|
||||
<field name="qty_available_not_res" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="product_template_form_view_procurement_button" model="ir.ui.view">
|
||||
<field name="name">product.template_procurement</field>
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id"
|
||||
ref="stock.product_template_form_view_procurement_button"/>
|
||||
<field
|
||||
name="inherit_id"
|
||||
ref="stock.product_template_form_view_procurement_button"
|
||||
/>
|
||||
<field name="arch" type="xml">
|
||||
<div name="button_box" position="inside">
|
||||
<button type="object"
|
||||
<button
|
||||
type="object"
|
||||
name="action_open_quants_unreserved"
|
||||
attrs="{'invisible':[('type', '!=', 'product')]}"
|
||||
class="oe_stat_button" icon="fa-building-o">
|
||||
<field name="qty_available_not_res" widget="statinfo"
|
||||
string="Unreserved"/>
|
||||
class="oe_stat_button"
|
||||
icon="fa-building-o"
|
||||
>
|
||||
<field
|
||||
name="qty_available_not_res"
|
||||
widget="statinfo"
|
||||
string="Unreserved"
|
||||
/>
|
||||
</button>
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="product_form_view_procurement_button" model="ir.ui.view">
|
||||
<field name="name">product.product.procurement</field>
|
||||
<field name="model">product.product</field>
|
||||
<field name="inherit_id"
|
||||
ref="stock.product_form_view_procurement_button"/>
|
||||
<field name="inherit_id" ref="stock.product_form_view_procurement_button" />
|
||||
<field name="arch" type="xml">
|
||||
<div name="button_box" position="inside">
|
||||
<button class="oe_stat_button"
|
||||
<button
|
||||
class="oe_stat_button"
|
||||
name="%(product_open_quants_unreserved)d"
|
||||
icon="fa-building-o"
|
||||
type="action" attrs="{'invisible':[('type', '!=', 'product')]}">
|
||||
<field name="qty_available_not_res" widget="statinfo"
|
||||
string="Unreserved"/>
|
||||
type="action"
|
||||
attrs="{'invisible':[('type', '!=', 'product')]}"
|
||||
>
|
||||
<field
|
||||
name="qty_available_not_res"
|
||||
widget="statinfo"
|
||||
string="Unreserved"
|
||||
/>
|
||||
</button>
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -1,28 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
|
||||
<record id="quant_search_view" model="ir.ui.view">
|
||||
<field name="name">stock.quant.search</field>
|
||||
<field name="model">stock.quant</field>
|
||||
<field name="inherit_id" ref="stock.quant_search_view"/>
|
||||
<field eval="10" name="priority"/>
|
||||
<field name="inherit_id" ref="stock.quant_search_view" />
|
||||
<field eval="10" name="priority" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="owner_id" position="after">
|
||||
<field name="contains_unreserved"/>
|
||||
<field name="contains_unreserved" />
|
||||
</field>
|
||||
<filter name="internal_loc" position="after">
|
||||
<filter name='internal_unreserved'
|
||||
<filter
|
||||
name='internal_unreserved'
|
||||
string="Internal Unreserved"
|
||||
domain="[('contains_unreserved','=', True), ('location_id.usage','=', 'internal')]"/>
|
||||
domain="[('contains_unreserved','=', True), ('location_id.usage','=', 'internal')]"
|
||||
/>
|
||||
</filter>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="product_open_quants_unreserved" model="ir.actions.act_window">
|
||||
<field name="name">Stock On Hand (Unreserved)</field>
|
||||
<field name="context">{'search_default_internal_loc': 1, 'search_default_locationgroup':1}</field>
|
||||
<field name="domain">[('product_id', '=', active_id), ('contains_unreserved', '=', True)]</field>
|
||||
<field
|
||||
name="context"
|
||||
>{'search_default_internal_loc': 1, 'search_default_locationgroup':1}</field>
|
||||
<field
|
||||
name="domain"
|
||||
>[('product_id', '=', active_id), ('contains_unreserved', '=', True)]</field>
|
||||
<field name="res_model">stock.quant</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user