~openerp-community/openobject-addons/trunk-addons-community

« back to all changes in this revision

Viewing changes to product_loan/stock_view.xml

  • Committer: Alexis de Lattre
  • Date: 2014-02-06 16:17:58 UTC
  • Revision ID: alexis@via.ecp.fr-20140206161758-8uwsbpeo1oi6godr
Don't modifiy invoice_state any more : we write 'none' instead of 'loan' (data migration required)
Remove unused views
Move views related to stock to stock_view.xml

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
                <field name="min_date" position="after">
39
39
                    <field name="related_loan_end_date" readonly="1" />
40
40
                </field>
41
 
                <button string="Create Invoice" position="attributes">
42
 
                    <attribute name="attrs">{'invisible': ['|',('state','&lt;&gt;','done'),('invoice_state','in',('invoiced','none','loan'))]}</attribute>
43
 
                </button>
44
41
            </field>
45
42
        </record>
46
43
 
54
51
                <field name="min_date" position="after">
55
52
                    <field name="related_loan_end_date" readonly="1" />
56
53
                </field>
57
 
                <button string="Create Invoice" position="attributes">
58
 
                    <attribute name="attrs">{'invisible': ['|',('state','&lt;&gt;','done'),('invoice_state','in',('invoiced','none','loan'))]}</attribute>
59
 
                </button>
60
54
            </field>
61
55
        </record>
62
56
 
79
73
            </field>
80
74
        </record>
81
75
 
82
 
        <record id="loan_intern_stock_action" model="ir.actions.act_window">
83
 
            <field name="name">Intern Loan Stock</field>
84
 
            <field name="res_model">stock.report.prodlots</field>
85
 
            <field name="view_type">form</field>
86
 
            <field name="domain">[('location_id', '=', 'loan_in')]</field>
87
 
            <field name="view_mode">tree,form</field>
88
 
        </record>
89
 
 
90
 
        <record id="loan_customer_stock_action" model="ir.actions.act_window">
91
 
            <field name="name">Customer Loan Stock</field>
92
 
            <field name="res_model">stock.report.prodlots</field>
93
 
            <field name="view_type">form</field>
94
 
            <field name="domain">[('location_id', '=', 'loan_out')]</field>
95
 
            <field name="view_mode">tree,form</field>
96
 
        </record>
97
 
 
98
 
 
99
 
        <menuitem action="loan_intern_stock_action" id="loan_intern_stock" parent="product_loan.menu_root_product_loan" sequence="20" />
100
 
        <menuitem action="loan_customer_stock_action" id="loan_customer_stock" parent="product_loan.menu_root_product_loan" sequence="30" />
 
76
 
 
77
        <record id="loaned_product_action" model="ir.actions.act_window">
 
78
            <field name="name">Loaned Products</field>
 
79
            <field name="res_model">stock.production.lot</field>
 
80
            <field name="view_type">form</field>
 
81
            <field name="domain">[('loan_manager_id','!=',False)]</field>
 
82
            <field name="context">{}</field>
 
83
            <field name="view_mode">tree,form,calendar</field>
 
84
        </record>
 
85
 
 
86
        <menuitem icon="STOCK_JUSTIFY_FILL" action="loaned_product_action" id="menu_loaned_product"
 
87
             parent="menu_root_product_loan" sequence="40" />
 
88
 
 
89
 
101
90
    </data>
102
91
</openerp>