forked from OCA/sale-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rental_view.xml
99 lines (90 loc) · 3.62 KB
/
rental_view.xml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2014-2015 Akretion (http://www.akretion.com/)
@author Alexis de Lattre <alexis.delattre@akretion.com>
The licence is in the file __openerp__.py
-->
<openerp>
<data>
<record id="sale_rental_form" model="ir.ui.view">
<field name="name">sale.rental.form</field>
<field name="model">sale.rental</field>
<field name="arch" type="xml">
<form string="Rental">
<header>
<field name="state" widget="statusbar"/>
</header>
<group name="main">
<field name="partner_id" />
<field name="rental_product_id" />
<field name="rented_product_id" />
<field name="start_date" />
<field name="end_date" />
<field name="rental_qty"/>
<field name="start_order_line_id" />
<field name="start_order_id" />
<field name="procurement_id"/>
<field name="company_id" groups="base.group_multi_company" />
</group>
<group name="extensions" string="Rental Extensions">
<field name="extension_order_line_ids" nolabel="1">
<tree>
<field name="order_id"/>
<field name="order_partner_id"/>
<field name="name"/>
<field name="start_date"/>
<field name="end_date"/>
<field name="product_uom_qty"/>
<field name="product_uom" string="Unit of Measure" groups="product.group_uom"/>
<field name="price_subtotal" sum="Total"/>
<field name="state"/>
<field name="invoiced"/>
</tree>
</field>
</group>
<group name="stock-out" string="Delivery">
<field name="out_move_id" />
<field name="out_state" />
<field name="out_picking_id" />
<!-- <field name="prodlot_id" /> -->
</group>
<group name="stock-in" string="Return">
<field name="in_move_id" />
<field name="in_state" />
<field name="in_picking_id" />
</group>
<group name="sell" string="Sell Rented Product">
<field name="sell_order_line_ids" nolabel="1" colspan="2"/>
<field name="sell_procurement_id"/>
<field name="sell_move_id"/>
<field name="sell_state"/>
<field name="sell_picking_id"/>
</group>
</form>
</field>
</record>
<record id="sale_rental_tree" model="ir.ui.view">
<field name="name">sale.rental.tree</field>
<field name="model">sale.rental</field>
<field name="arch" type="xml">
<tree string="Rentals">
<field name="partner_id"/>
<field name="rented_product_id"/>
<field name="start_date"/>
<field name="out_state" string="Delivery"/>
<field name="end_date" string="End Date"/>
<field name="in_state" string="Return"/>
<field name="state" />
</tree>
</field>
</record>
<record id="sale_rental_action" model="ir.actions.act_window">
<field name="name">Rentals</field>
<field name="res_model">sale.rental</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem id="sale_rental_menu" parent="base.menu_sales"
action="sale_rental_action" sequence="90"/>
</data>
</openerp>