summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/gudang_service.xml
blob: 8c681451ac6f807b3b8f6e482a8ebb5c182e3736 (plain)
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
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
	<data>
	<!-- Tree -->
    <record id="view_gudang_service_tree" model="ir.ui.view">
        <field name="name">gudang.serivice.tree</field>
        <field name="model">gudang.service</field>
        <field name="arch" type="xml">
            <tree string="Monitoring Gudang Service">
				<field name="name"/>
				<field name="partner_id"/>
				<field name="origin"/>
				<field name="remaining_date"/>
				<!-- <field name="picking_id"/> -->
            </tree>
        </field>
    </record>
	<!-- Form -->
    <record id="view_gudang_service_form" model="ir.ui.view">
        <field name="name">gudang.service.form</field>
        <field name="model">gudang.service</field>
        <field name="arch" type="xml">
            <form>
			<header>
				<button name="action_submit" string="Submit" type="object"
						class="btn-primary"
						attrs="{'invisible': [('state', 'in', ['cancel', 'done', 'onprogress'])]}"/>
				<button name="action_done" string="Set Done" type="object"
						class="btn-primary"
						attrs="{'invisible': [('state', 'not in', ['onprogress'])]}"/>
				<button name="action_cancel" string="Cancel" type="object"
						class="btn-secondary"
						attrs="{'invisible': [('state', 'in', ['cancel', 'done', 'draft'])]}"/>
				<button name="action_draft" string="Set to Draft" type="object"
						class="btn-secondary"
						attrs="{'invisible': [('state', 'in', ['draft', 'done', 'onprogress'])]}"/>
				<field name="state" widget="statusbar" readonly="1"/>
			</header>
			<sheet>
				<div class="oe_title">
					<h1>
						<field name="name" readonly="1" class="oe_inline"/>
					</h1>
				</div>
				<group>
					<field name="origin"/>
					<field name="partner_id"/>
					<field name="picking_id"/>
					<field name="date"/>
					<field name="remaining_date"/>
					<field name="create_uid"/>
				</group>
					<notebook>
						<page string="Product Lines" name="product_lines">
							<field name="gudang_service_lines">
								<tree string="Product Lines" editable="top" create="0" delete="1">
									<field name="product_id"/>
									<field name="quantity"/>
									<!-- <field name="picking_id"/> -->
								</tree>
							</field>
						</page>
					</notebook>
			</sheet>
            </form>
        </field>
    </record>
	<!-- Action -->
	<record id="action_gudang_service" model="ir.actions.act_window">
		<field name="name">Monitoring Gudang Service</field>
		<field name="type">ir.actions.act_window</field>
		<field name="res_model">gudang.service</field>
		<field name="view_mode">tree,form</field>
	</record>
		<!-- Menu -->
		<menuitem
				id="menu_gudang_service"
				name="Gudang Service"
				parent="sale.sale_order_menu"
				sequence="10"
				action="action_gudang_service"
		/>
    </data>
	<!-- Cron -->
	<record id="ir_cron_gudang_service_logistik_notify" model="ir.cron">
		<field name="name">Gudang Service Daily Notification</field>
		<field name="model_id" ref="model_gudang_service"/>
		<field name="state">code</field>
		<field name="code">model.cron_notify_onprogress_gudang_service()</field>
		<field name="interval_number">1</field>
		<field name="interval_type">days</field>
		<field name="numbercall">-1</field>
		<field name="active">False</field>
	</record>
</odoo>