2013-12-04 10:59:20 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
|
|
|
|
<record id="view_wizard_valuation_history" model="ir.ui.view">
|
2013-12-09 09:48:35 +00:00
|
|
|
<field name="name">Stock Valuation</field>
|
2013-12-04 10:59:20 +00:00
|
|
|
<field name="model">wizard.valuation.history</field>
|
|
|
|
<field name="arch" type="xml">
|
2014-06-12 07:09:59 +00:00
|
|
|
<form string="Choose your date">
|
2014-02-12 12:46:46 +00:00
|
|
|
<p class="oe_gray" attrs="{'invisible': [('choose_date', '=', False)]}">
|
2014-03-14 15:13:20 +00:00
|
|
|
Choose the date for which you want to get the stock valuation of your products.
|
2013-12-04 10:59:20 +00:00
|
|
|
|
|
|
|
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>
|
2014-02-12 12:46:46 +00:00
|
|
|
<p class="oe_gray" attrs="{'invisible': [('choose_date', '=', True)]}">
|
|
|
|
Retrieve the stock valuation of your products at current day
|
|
|
|
</p>
|
2013-12-04 10:59:20 +00:00
|
|
|
<group>
|
2014-02-12 12:46:46 +00:00
|
|
|
<field name="choose_date"/>
|
|
|
|
<field name="date" attrs="{'invisible': [('choose_date', '=', False)]}"/>
|
2013-12-04 10:59:20 +00:00
|
|
|
</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">
|
2013-12-09 09:48:35 +00:00
|
|
|
<field name="name">Stock Valuation</field>
|
2013-12-04 10:59:20 +00:00
|
|
|
<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>
|
2013-12-09 09:48:35 +00:00
|
|
|
<menuitem id="menu_action_wizard_valuation_history" action="action_wizard_stock_valuation_history" parent="stock.next_id_61" sequence="1"/>
|
2013-12-04 10:59:20 +00:00
|
|
|
|
|
|
|
<record id="view_stock_history_report_tree" model="ir.ui.view">
|
2013-12-05 18:10:52 +00:00
|
|
|
<field name="name">Stock Value At Date</field>
|
2013-12-04 10:59:20 +00:00
|
|
|
<field name="model">stock.history</field>
|
|
|
|
<field name="arch" type="xml">
|
2014-08-05 13:16:53 +00:00
|
|
|
<tree string="Stock Value At Date" create="0" delete="0">
|
2013-12-04 10:59:20 +00:00
|
|
|
<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"/>
|
2014-04-16 15:18:25 +00:00
|
|
|
<field name="source"/>
|
2013-12-04 10:59:20 +00:00
|
|
|
<field name="quantity" sum="# of Products "/>
|
2014-03-14 15:13:20 +00:00
|
|
|
<field name="inventory_value" sum="Total Value"/>
|
2013-12-04 10:59:20 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2014-02-12 12:46:46 +00:00
|
|
|
<record id="view_stock_history_report_graph" model="ir.ui.view">
|
|
|
|
<field name="name">stock.history.value.graph</field>
|
|
|
|
<field name="model">stock.history</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<graph string="Stock Value At Date" type="pivot">
|
|
|
|
<field name="product_id" type="row"/>
|
|
|
|
<field name="inventory_value" type="measure"/>
|
|
|
|
<field name="quantity" type="measure"/>
|
|
|
|
<field name="location_id" type="row"/>
|
|
|
|
</graph>
|
|
|
|
</field>
|
|
|
|
</record>
|
2013-12-04 10:59:20 +00:00
|
|
|
<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">
|
2013-12-05 18:10:52 +00:00
|
|
|
<search string="Stock Value At Date">
|
2013-12-04 10:59:20 +00:00
|
|
|
<field name="product_id"/>
|
2015-01-12 15:52:57 +00:00
|
|
|
<field name="location_id" filter_domain="[('location_id', 'child_of', self)]"/>
|
2013-12-04 10:59:20 +00:00
|
|
|
<field name="company_id" groups="base.group_multi_company"/>
|
2014-05-22 09:44:35 +00:00
|
|
|
<group expand="1" string="Group By">
|
2013-12-04 10:59:20 +00:00
|
|
|
<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'}"/>
|
2013-12-06 16:59:56 +00:00
|
|
|
<filter string="Location" icon="terp-accessories-archiver" context="{'group_by':'location_id'}" name='group_by_location'/>
|
2013-12-06 16:33:07 +00:00
|
|
|
<filter string="Move" icon="terp-accessories-archiver" context="{'group_by':'move_id'}"/>
|
2013-12-04 10:59:20 +00:00
|
|
|
<filter string="Company" icon="terp-go-home" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
|
|
|
|
</group>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
2014-02-12 13:19:37 +00:00
|
|
|
|
|
|
|
<record id="action_history_tree" model="ir.actions.act_window">
|
|
|
|
<field name="name">Current Inventory Valuation</field>
|
|
|
|
<field name="res_model">stock.history</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="domain">[('date','<=',time.strftime('%Y-%m-%d %H:%M:%S'))]</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,graph</field>
|
|
|
|
</record>
|
|
|
|
<menuitem action="action_history_tree"
|
|
|
|
id="menu_action_history_tree"
|
|
|
|
parent="stock.menu_stock_inventory_control"
|
|
|
|
groups="stock.group_locations"
|
|
|
|
sequence="20"/>
|
2013-12-04 10:59:20 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|
|
|
|
|