~margin-analysis-core-editors/margin-analysis/github-7.0

« back to all changes in this revision

Viewing changes to product_stock_cost_field_report/product_stock_view.xml

  • Committer: Sylvain LE GAL
  • Date: 2015-07-16 05:00:30 UTC
  • mfrom: (75.1.1)
  • Revision ID: git-v1:07dd209bc495250ad1933e64cdded3e3119aa03d
Merge pull request #22 from Eficent/7.0-product_stock_cost_field_report-fix_view

[FIX] [product_stock_cost_field_report] Correct calculation of cost of work orders

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
<openerp>
3
3
  <data>
4
4
 
5
 
    <!-- Remove cost price to move it -->
6
 
    <record model="ir.ui.view" id="product_get_cost_field.product_get_cost_field_form">
7
 
      <field name="name">product.get_cost_field.view.form</field>
8
 
      <field name="type">form</field>
9
 
      <field name="model">product.product</field>
10
 
      <field name="inherit_id" ref="product.product_normal_form_view" />
11
 
      <field name="arch" type="xml">
12
 
          <field name="cost_method" groups="product.group_costing_method" position="after">
13
 
        </field>
14
 
      </field>
15
 
    </record>
16
 
 
17
5
    <record id="view_product_standard_price_form" model="ir.ui.view">
18
6
        <field name="name">product.product.standard.price.form.inherit</field>
19
7
        <field name="model">product.product</field>
20
 
        <field name="priority">20</field>
21
 
        <field name="inherit_id" ref="stock.view_product_standard_price_form"/>
 
8
        <field name="inherit_id" ref="product_get_cost_field.product_get_cost_field_form"/>
22
9
        <field name="arch" type="xml">
23
 
            <label for="standard_price" position="before">
 
10
            <xpath expr="//field[@name='cost_price']" position="attributes">
 
11
                <attribute name="groups">base.group_user</attribute>
 
12
                <attribute name="nolabel">1</attribute>
 
13
            </xpath>
 
14
            <xpath expr="//field[@name='cost_price']" position="before">
24
15
                <label for="cost_price" align="1.0" groups="base.group_user"/>
25
 
                <div groups="base.group_user">
26
 
                    <field name="cost_price" nolabel="1"/>
27
 
                </div>
28
 
            </label>
 
16
            </xpath>
29
17
        </field>
30
18
    </record>
31
19