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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <record id="view_change_standard_price" model="ir.ui.view">
            <field name="name">Change Standard Price</field>
            <field name="model">lot.change.standard.price</field>
            <field name="arch" type="xml">
              <form string="Change Standard Price" version="7.0">
                  <separator string="Change Price"/>
                  <group>
                      <field name="new_price" string="Cost Price"/>
                  </group>
                  <footer>
                      <button name="change_price" string="_Apply" type="object" class="oe_highlight"/>
                      or
                      <button string="Cancel" class="oe_link" special="cancel" />
                  </footer>
              </form>
            </field>
        </record>

        <record id="action_view_change_standard_price" model="ir.actions.act_window">
            <field name="name">Change Standard Price</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">lot.change.standard.price</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="view_change_standard_price"/>
            <field name="target">new</field>
        </record>

    </data>
</openerp>