~vauxoo/addons-vauxoo/7.0-project_issue_conf-dev_luis

« back to all changes in this revision

Viewing changes to report_profit/report_profit_view.xml

  • Committer: Javier Duran
  • Date: 2012-01-30 16:55:47 UTC
  • Revision ID: javier@squezee-vir-20120130165547-8bn2rxdgxzplqpfy
[ADD] se agrega el modulo report profit

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
        <!--  Profit by products  -->
 
6
 
 
7
        <record id="view_profit_product_tree" model="ir.ui.view">
 
8
            <field name="name">report.profit.product.tree</field>
 
9
            <field name="model">report.profit</field>
 
10
            <field name="type">tree</field>
 
11
            <field name="arch" type="xml">
 
12
                <tree string="Profit by Product" colors="red:profit&lt;0 and (type=='out_invoice');blue:type=='out_refund' and (profit&gt;0);grey:type=='out_refund' and (profit&lt;=0)">
 
13
                    <field name="name"/>
 
14
                    <field name="product_id"/>
 
15
                    <field name="partner_id"/>
 
16
                    <field name="user_id"/>
 
17
                    <field name="quantity"/>
 
18
                    <field name="uom_id"/>
 
19
                    <field name="price_unit"/>
 
20
                    <field name="last_cost"/>
 
21
                    <field name="price_subtotal" sum="Price amount"/>
 
22
                    <field name="last_cost_subtotal" sum="Cost amount"/>
 
23
                    <field name="profit"/>
 
24
                    <field name="perc"/>
 
25
                    <field name="type"/>
 
26
                    <field name="qty_consol" sum="Consolidate amount"/>
 
27
                    <field name="p_uom_c_id"/>
 
28
                </tree>
 
29
            </field>
 
30
        </record>
 
31
 
 
32
        
 
33
 
 
34
        <record id="view_profit_product_form" model="ir.ui.view">
 
35
            <field name="name">report.profit.product.form</field>
 
36
            <field name="model">report.profit</field>
 
37
            <field name="type">form</field>
 
38
            <field name="arch" type="xml">
 
39
                <form string="Profit by Product">
 
40
                    <field name="name"/>
 
41
                    <field name="product_id"/>
 
42
                    <field name="partner_id"/>
 
43
                    <field name="user_id"/>
 
44
                    <field name="quantity"/>
 
45
                    <field name="uom_id"/>
 
46
                    <field name="price_unit"/>
 
47
                    <field name="last_cost"/>
 
48
                    <field name="price_subtotal"/>
 
49
                    <field name="last_cost_subtotal"/>
 
50
                    <field name="type"/>
 
51
                    <field name="qty_consol"/>
 
52
                    <field name="p_uom_c_id"/>
 
53
                </form>
 
54
            </field>
 
55
        </record>
 
56
        
 
57
 
 
58
 
 
59
        <record id="action_profit_product_tree" model="ir.actions.act_window">
 
60
            <field name="name">Profit by Product</field>
 
61
            <field name="res_model">report.profit</field>
 
62
            <field name="view_type">form</field>
 
63
            <field name="view_mode">tree,form</field>
 
64
        </record>
 
65
        <menuitem id="profit_reporting" name="Management Reporting" parent="sale.menu_sale_root"/>
 
66
 
 
67
    </data>
 
68
</openerp>