~pexego/openobject-addons/6.1-pexego-sale_commission

« back to all changes in this revision

Viewing changes to production_costs/fixed_cost_view.xml

  • Committer: Omar (pexego)
  • Date: 2012-07-27 08:40:22 UTC
  • Revision ID: omar@pexego.es-20120727084022-qp3ludpr3vsuyuf6
[ADD] Traceability modules ported to 6.1

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
        
 
5
        <!--TREE VIEW OF PRODUCTION FIXED COSTS OBJECT-->
 
6
        <record id="mrp_production_fixed_costs_tree_view" model="ir.ui.view">
 
7
            <field name="name">mrp.production.fixed.costs.tree.view</field>
 
8
            <field name="model">mrp.production.fixed.costs</field>
 
9
            <field name="type">tree</field>
 
10
            <field name="arch" type="xml">
 
11
                <tree string="Production Fixed Costs" editable="top">
 
12
                    <field name="name"/>
 
13
                    <field name="amount"/>
 
14
                </tree>
 
15
            </field>
 
16
        </record>
 
17
 
 
18
         <!--FORM VIEW OF PRODUCTION FIXED COSTS OBJECT-->
 
19
        <record id="mrp_production_fixed_costs_form_view" model="ir.ui.view">
 
20
            <field name="name">mrp.production.fixed.costs.form.view</field>
 
21
            <field name="model">mrp.production.fixed.costs</field>
 
22
            <field name="type">form</field>
 
23
            <field name="arch" type="xml">
 
24
                <form string="Fixed Costs">
 
25
                    <group colspan="4">
 
26
                        <field name="name"/>
 
27
                        <field name="amount"/>
 
28
                        <field name="production_id"/>
 
29
                        <field name="company_id"/>
 
30
                    </group>
 
31
                </form>
 
32
            </field>
 
33
        </record>
 
34
 
 
35
 
 
36
         <!-- PRODUCTION MANPOWER ACTION WINDOW -->
 
37
        <record id="action_view_mrp_production_fixed_costs" model="ir.actions.act_window">
 
38
             <field name="name">Production Fixed Costs</field>
 
39
             <field name="type">ir.actions.act_window</field>
 
40
             <field name="res_model">mrp.production.fixed.costs</field>
 
41
             <field name="view_type">form</field>
 
42
             <field name="view_mode">tree,form</field>
 
43
        </record>
 
44
 
 
45
 
 
46
        <!--ADDS FORM VIEW OF PRODUCTION COSTS IN A MRP-PRODUCTION-->
 
47
        <record id="mrp_production_add_fixed_costs_form_view" model="ir.ui.view">
 
48
            <field name="name">mrp.production.add.fixed.costs.form.view</field>
 
49
            <field name="model">mrp.production</field>
 
50
             <field name="inherit_id" ref="mrp.mrp_production_form_view"/>
 
51
            <field name="type">form</field>
 
52
            <field name="arch" type="xml">
 
53
                <xpath expr="/form/notebook/page[@string='Consumed Products']" position="after">
 
54
                    <page string="Fixed Costs" attrs="{'readonly':[('state', '=', 'done')]}">
 
55
                        <field name="fixed_costs" nolabel="1"/>
 
56
                    </page>
 
57
                </xpath>
 
58
            </field>
 
59
        </record>
 
60
 
 
61
    </data>
 
62
</openerp>
 
 
b'\\ No newline at end of file'