72 lines
3.6 KiB
XML
72 lines
3.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
|
|
<record id="view_wizard_valuation_history" model="ir.ui.view">
|
|
<field name="name">Stock Valuation History</field>
|
|
<field name="model">wizard.valuation.history</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Choose your date" version="7.0">
|
|
<p class="oe_gray">
|
|
Choose the date for wich you want to get the stock valuation of your products.
|
|
|
|
This will filter the stock operation that weren't done at the selected date, to retreive the quantity
|
|
you had, and gives you the inventory value according to the standard price used at that time.
|
|
</p>
|
|
<group>
|
|
<field name="date"/>
|
|
</group>
|
|
<footer>
|
|
<button name="open_table" string="Retrieve the Inventory Value" type="object" class="oe_highlight" />
|
|
or
|
|
<button string="Cancel" class="oe_link" special="cancel" />
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
<record id="action_wizard_stock_valuation_history" model="ir.actions.act_window">
|
|
<field name="name">Stock Valuation History</field>
|
|
<field name="res_model">wizard.valuation.history</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="view_id" ref="view_wizard_valuation_history"/>
|
|
<field name="target">new</field>
|
|
</record>
|
|
<menuitem id="menu_action_wizard_valuation_history" action="action_wizard_stock_valuation_history" parent="stock.next_id_61"/>
|
|
|
|
<record id="view_stock_history_report_tree" model="ir.ui.view">
|
|
<field name="name">Stock Valuation History</field>
|
|
<field name="model">stock.history</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Stock Valuation History">
|
|
<field name="location_id" invisible="1"/>
|
|
<field name="product_id" invisible="1"/>
|
|
<field name="move_id"/>
|
|
<field name="company_id" groups="base.group_multi_company"/>
|
|
<field name="date"/>
|
|
<field name="quantity" sum="# of Products "/>
|
|
<field name="inventory_value"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
<record id="view_stock_history_report_search" model="ir.ui.view">
|
|
<field name="name">stock.history.report.search</field>
|
|
<field name="model">stock.history</field>
|
|
<field name="arch" type="xml">
|
|
<search string="Stock Valuation History">
|
|
<field name="product_id"/>
|
|
<field name="location_id" filter_domain="[('name', 'child_of', self)]"/>
|
|
<field name="company_id" groups="base.group_multi_company"/>
|
|
<group expand="1" string="Group By...">
|
|
<filter string="Product" icon="terp-accessories-archiver" context="{'group_by':'product_id'}" name='group_by_product'/>
|
|
<filter string="Product Category" icon="terp-accessories-archiver" context="{'group_by':'product_categ_id'}"/>
|
|
<filter string="Location" icon="terp-accessories-archiver" context="{'group_by':'location_id'}"/>
|
|
<filter string="Company" icon="terp-go-home" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
|
|
</group>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</openerp>
|
|
|