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>
|
<odoo>
|
||||||
|
|
||||||
<record id="view_stock_product_template_tree" model="ir.ui.view">
|
<record id="view_stock_product_template_tree" model="ir.ui.view">
|
||||||
<field name="name">product.template.stock.tree.inherit</field>
|
<field name="name">product.template.stock.tree.inherit</field>
|
||||||
<field name="model">product.template</field>
|
<field name="model">product.template</field>
|
||||||
<field name="inherit_id"
|
<field name="inherit_id" ref="stock.view_stock_product_template_tree" />
|
||||||
ref="stock.view_stock_product_template_tree"/>
|
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<field name="qty_available" position="after">
|
<field name="qty_available" position="after">
|
||||||
<field name="qty_available_not_res"/>
|
<field name="qty_available_not_res" />
|
||||||
</field>
|
</field>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="product_template_search_form_view_stock" model="ir.ui.view">
|
<record id="product_template_search_form_view_stock" model="ir.ui.view">
|
||||||
<field name="name">product.template.search.stock.form.inherit</field>
|
<field name="name">product.template.search.stock.form.inherit</field>
|
||||||
<field name="model">product.template</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">
|
<field name="arch" type="xml">
|
||||||
<filter name="real_stock_available" position="after">
|
<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>
|
</filter>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="product_template_kanban_stock_view" model="ir.ui.view">
|
<record id="product_template_kanban_stock_view" model="ir.ui.view">
|
||||||
<field name="name">Product Template Kanban Stock</field>
|
<field name="name">Product Template Kanban Stock</field>
|
||||||
<field name="model">product.template</field>
|
<field name="model">product.template</field>
|
||||||
<field name="inherit_id"
|
<field name="inherit_id" ref="stock.product_template_kanban_stock_view" />
|
||||||
ref="stock.product_template_kanban_stock_view"/>
|
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<ul position="inside">
|
<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>
|
</ul>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="view_stock_product_tree" model="ir.ui.view">
|
<record id="view_stock_product_tree" model="ir.ui.view">
|
||||||
<field name="name">product.stock.tree.inherit</field>
|
<field name="name">product.stock.tree.inherit</field>
|
||||||
<field name="model">product.product</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="arch" type="xml">
|
||||||
<field name="qty_available" position="after">
|
<field name="qty_available" position="after">
|
||||||
<field name="qty_available_not_res"/>
|
<field name="qty_available_not_res" />
|
||||||
</field>
|
</field>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="product_template_form_view_procurement_button" model="ir.ui.view">
|
<record id="product_template_form_view_procurement_button" model="ir.ui.view">
|
||||||
<field name="name">product.template_procurement</field>
|
<field name="name">product.template_procurement</field>
|
||||||
<field name="model">product.template</field>
|
<field name="model">product.template</field>
|
||||||
<field name="inherit_id"
|
<field
|
||||||
ref="stock.product_template_form_view_procurement_button"/>
|
name="inherit_id"
|
||||||
|
ref="stock.product_template_form_view_procurement_button"
|
||||||
|
/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<div name="button_box" position="inside">
|
<div name="button_box" position="inside">
|
||||||
<button type="object"
|
<button
|
||||||
|
type="object"
|
||||||
name="action_open_quants_unreserved"
|
name="action_open_quants_unreserved"
|
||||||
attrs="{'invisible':[('type', '!=', 'product')]}"
|
attrs="{'invisible':[('type', '!=', 'product')]}"
|
||||||
class="oe_stat_button" icon="fa-building-o">
|
class="oe_stat_button"
|
||||||
<field name="qty_available_not_res" widget="statinfo"
|
icon="fa-building-o"
|
||||||
string="Unreserved"/>
|
>
|
||||||
|
<field
|
||||||
|
name="qty_available_not_res"
|
||||||
|
widget="statinfo"
|
||||||
|
string="Unreserved"
|
||||||
|
/>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="product_form_view_procurement_button" model="ir.ui.view">
|
<record id="product_form_view_procurement_button" model="ir.ui.view">
|
||||||
<field name="name">product.product.procurement</field>
|
<field name="name">product.product.procurement</field>
|
||||||
<field name="model">product.product</field>
|
<field name="model">product.product</field>
|
||||||
<field name="inherit_id"
|
<field name="inherit_id" ref="stock.product_form_view_procurement_button" />
|
||||||
ref="stock.product_form_view_procurement_button"/>
|
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<div name="button_box" position="inside">
|
<div name="button_box" position="inside">
|
||||||
<button class="oe_stat_button"
|
<button
|
||||||
name="%(product_open_quants_unreserved)d"
|
class="oe_stat_button"
|
||||||
icon="fa-building-o"
|
name="%(product_open_quants_unreserved)d"
|
||||||
type="action" attrs="{'invisible':[('type', '!=', 'product')]}">
|
icon="fa-building-o"
|
||||||
<field name="qty_available_not_res" widget="statinfo"
|
type="action"
|
||||||
string="Unreserved"/>
|
attrs="{'invisible':[('type', '!=', 'product')]}"
|
||||||
|
>
|
||||||
|
<field
|
||||||
|
name="qty_available_not_res"
|
||||||
|
widget="statinfo"
|
||||||
|
string="Unreserved"
|
||||||
|
/>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|||||||
@@ -1,28 +1,31 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<odoo>
|
<odoo>
|
||||||
|
|
||||||
<record id="quant_search_view" model="ir.ui.view">
|
<record id="quant_search_view" model="ir.ui.view">
|
||||||
<field name="name">stock.quant.search</field>
|
<field name="name">stock.quant.search</field>
|
||||||
<field name="model">stock.quant</field>
|
<field name="model">stock.quant</field>
|
||||||
<field name="inherit_id" ref="stock.quant_search_view"/>
|
<field name="inherit_id" ref="stock.quant_search_view" />
|
||||||
<field eval="10" name="priority"/>
|
<field eval="10" name="priority" />
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<field name="owner_id" position="after">
|
<field name="owner_id" position="after">
|
||||||
<field name="contains_unreserved"/>
|
<field name="contains_unreserved" />
|
||||||
</field>
|
</field>
|
||||||
<filter name="internal_loc" position="after">
|
<filter name="internal_loc" position="after">
|
||||||
<filter name='internal_unreserved'
|
<filter
|
||||||
string="Internal Unreserved"
|
name='internal_unreserved'
|
||||||
domain="[('contains_unreserved','=', True), ('location_id.usage','=', 'internal')]"/>
|
string="Internal Unreserved"
|
||||||
|
domain="[('contains_unreserved','=', True), ('location_id.usage','=', 'internal')]"
|
||||||
|
/>
|
||||||
</filter>
|
</filter>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="product_open_quants_unreserved" model="ir.actions.act_window">
|
<record id="product_open_quants_unreserved" model="ir.actions.act_window">
|
||||||
<field name="name">Stock On Hand (Unreserved)</field>
|
<field name="name">Stock On Hand (Unreserved)</field>
|
||||||
<field name="context">{'search_default_internal_loc': 1, 'search_default_locationgroup':1}</field>
|
<field
|
||||||
<field name="domain">[('product_id', '=', active_id), ('contains_unreserved', '=', True)]</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>
|
<field name="res_model">stock.quant</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|||||||
Reference in New Issue
Block a user