mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
product.template, now takes in account variants and correctly displays value. [FLAKE8] Removing duplicate modules and moving README.rst into __unported__ [ADD} location calculations [FIX] typo
44 lines
2.1 KiB
XML
44 lines
2.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
<record model="ir.ui.view" id="view_stock_available_form">
|
|
<field name="name">Quantity available to promise (form)</field>
|
|
<field name="model">product.template</field>
|
|
<field name="inherit_id" ref="stock.view_template_property_form"/>
|
|
<field name="arch" type="xml">
|
|
<field name="virtual_available" position="after">
|
|
<newline/>
|
|
<field name="immediately_usable_qty" />
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="view_stock_available_tree">
|
|
<field name="name">Quantity available to promise (tree)</field>
|
|
<field name="model">product.template</field>
|
|
<field name="inherit_id" ref="stock.view_stock_product_template_tree"/>
|
|
<field name="arch" type="xml">
|
|
<data>
|
|
<tree position="attributes">
|
|
<attribute name="colors">red:immediately_usable_qty<0;blue:immediately_usable_qty>=0 and state in ('draft', 'end', 'obsolete');black:immediately_usable_qty>=0 and state not in ('draft', 'end', 'obsolete')</attribute>
|
|
</tree>
|
|
<field name="virtual_available" position="after">
|
|
<field name="immediately_usable_qty" />
|
|
</field>
|
|
</data>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="view_stock_available_kanban">
|
|
<field name="name">Quantity available to promise (kanban)</field>
|
|
<field name="model">product.template</field>
|
|
<field name="inherit_id" ref="stock.product_template_kanban_stock_view"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='virtual_available']/.." position="replace">
|
|
<li t-if="record.type.raw_value != 'service'">Available to promise: <field name="immediately_usable_qty"/> <field name="uom_id"/></li>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</openerp>
|