22 lines
1.0 KiB
XML
22 lines
1.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="view_stock_quantity_history_inherit_stock_account" model="ir.ui.view">
|
|
<field name="name">Valuation Report at Date</field>
|
|
<field name="model">stock.quantity.history</field>
|
|
<field name="inherit_id" ref="stock.view_stock_quantity_history"></field>
|
|
<field name="arch" type="xml">
|
|
<!-- ensure string/description matches the model we're looking at the history of -->
|
|
<field name="inventory_datetime" position="attributes">
|
|
<attribute name="invisible">
|
|
context.get('active_model') != 'stock.quant'
|
|
</attribute>
|
|
</field>
|
|
<field name="inventory_datetime" position="after">
|
|
<field name="inventory_datetime" string="Valuation at Date"
|
|
help="Choose a date to get the valuation at that date"
|
|
invisible="context.get('active_model') != 'stock.valuation.layer'"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
</odoo>
|