~numerigraphe-team/stock-logistic-warehouse/7.0-add-stock-valuation-history

« back to all changes in this revision

Viewing changes to stock_lot_valuation/stock_view.xml

  • Committer: Joel Grand-Guillaume
  • Author(s): lorenzo.battistini at agilebg
  • Date: 2013-11-01 09:40:45 UTC
  • mfrom: (29.3.35 adding_stock_lot_costing)
  • Revision ID: joel.grandguillaume@camptocamp.com-20131101094045-2uac738fcfgfopb7
[MRG][ADD] stock_lot_valuation : Stock valuation (standard or average price, ...) based on lots.
This module extends standard stock valuation (based on products). Valuing lots allows to have different costs for different lots of the same product.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<openerp>
 
3
<data>
 
4
    <record id="view_production_lot_form" model="ir.ui.view">
 
5
        <field name="name">view_production_lot_form</field>
 
6
        <field name="model">stock.production.lot</field>
 
7
        <field name="inherit_id" ref="stock.view_production_lot_form"></field>
 
8
        <field name="arch" type="xml">
 
9
            <field name="stock_available" position="after" version="7.0">
 
10
                <field name="cost_method"></field>
 
11
                <label string="Cost Price" for="standard_price" align="1.0" groups="base.group_user"/>
 
12
                <div groups="base.group_user">
 
13
                    <field name="standard_price" attrs="{'readonly':[('cost_method','=','average')]}" nolabel="1"/>
 
14
                    <button name="%(action_view_change_standard_price)d" string="update"
 
15
                        type="action" attrs="{'invisible':[('cost_method','&lt;&gt;','average')]}"
 
16
                        class="oe_link" groups="product.group_costing_method"/>
 
17
                </div>
 
18
            </field>
 
19
        </field>
 
20
    </record>
 
21
</data>
 
22
</openerp>