1
<?xml version="1.0" encoding="utf-8" ?>
5
<record id="action_purchase_order_follow_up" model="ir.actions.server">
6
<field name="name">Order Follow Up</field>
7
<field name="model_id" ref="model_purchase_order_followup"/>
8
<field name="state">code</field>
9
<field name="code">action = obj.start_order_followup(context=context)</field>
12
<record id="ir_open_purchase_order_follow_up" model="ir.values">
13
<field name="key2">client_action_multi</field>
14
<field name="model">purchase.order</field>
15
<field name="name">Order Follow Up</field>
16
<field eval="'ir.actions.server,%d'%action_purchase_order_follow_up" name="value"/>
17
<field eval="True" name="object"/>
20
<record id="purchase_order_followup_form_view" model="ir.ui.view">
21
<field name="name">purchase.order.followup.form.view</field>
22
<field name="model">purchase.order.followup</field>
23
<field name="type">form</field>
24
<field name="arch" type="xml">
25
<form string="Purchase Order Followup">
26
<field name="order_id" readonly="1" />
27
<field name="supplier_ref" readonly="1" />
28
<field name="partner_id" readonly="1" />
29
<field name="order_type" readonly="1" />
30
<field name="priority" readonly="1" />
31
<field name="categ" readonly="1" />
32
<!--<field name="delivery_requested_date" readonly="1" />
33
<field name="delivery_confirmed_date" readonly="1" />-->
34
<field name="line_ids" mode="tree" readonly="1" colspan="4" nolabel="1">
35
<tree string="Followup lines" colors="orange:return_move==True">
36
<field name="line_name" />
37
<field name="line_product_id" />
38
<field name="line_product_qty" />
39
<field name="line_uom_id" />
40
<field name="line_confirmed_date" />
41
<field name="line_shipped_rate" widget="progressbar" />
42
<field name="picking_id" />
43
<button name="go_to_incoming" type="object" string="View Incoming shipment" icon="terp-stock_zoom" />
44
<field name="move_product_id" />
45
<field name="move_product_qty" />
46
<field name="move_uom_id" />
47
<field name="move_delivery_date" />
48
<field name="move_state" />
49
<field name="return_move" invisible="1" />
52
<button name="close_view" type="object" string="Close" icon="gtk-cancel" colspan="2" />
53
<button name="update_view" type="object" string="Update" icon="gtk-execute" colspan="2" />
58
<record id="purchase_order_followup_from_menu" model="ir.ui.view">
59
<field name="name">purchase.order.followup.from.menu</field>
60
<field name="model">purchase.order.followup.from.menu</field>
61
<field name="type">form</field>
62
<field name="arch" type="xml">
63
<form string="Choose a Purchase Order">
64
<separator colspan="4" string="Select Purchase Order" />
65
<field name="order_id"
66
attrs="{'readonly': ['|', ('cust_order_id', '!=', False), ('incoming_id', '!=', False)], 'required': [('cust_order_id', '=', False), ('incoming_id', '=', False)]}"
67
domain="[('rfq_ok', '=', False), ('state', 'in', ['approved', 'done', 'except_picking', 'except_invoice'])]"
68
on_change="change_order_id(order_id, cust_order_id, incoming_id, 'order_id')"/>
69
<field name="cust_order_id"
70
context="{'from_followup': True}"
71
attrs="{'readonly': ['|', ('order_id', '!=', False), ('incoming_id', '!=', False)], 'required': [('order_id', '=', False), ('incoming_id', '=', False)]}"
72
domain="[('rfq_ok', '=', False), ('state', 'in', ['approved', 'done', 'except_picking', 'except_invoice'])]"
73
on_change="change_order_id(order_id, cust_order_id, incoming_id, 'cust_order_id')" />
74
<field name="incoming_id"
75
context="{'from_followup': True}"
76
attrs="{'readonly': ['|', ('order_id', '!=', False), ('cust_order_id', '!=', False)], 'required': [('cust_order_id', '=', False), ('order_id', '=', False)]}"
77
domain="[('purchase_id', '!=', False)]"
78
on_change="change_order_id(order_id, cust_order_id, incoming_id, 'incoming_id')" />
79
<separator colspan="4" string="Actions" />
80
<button special="cancel" string="Cancel" colspan="2" icon="gtk-cancel" />
81
<button name="go_to_followup" string="Go to followup" icon="gtk-execute" colspan="2" type="object"/>
86
<record id="action_purchase_order_followup_from_menu" model="ir.actions.act_window">
87
<field name="name">Purchase Order Follow-Up</field>
88
<field name="res_model">purchase.order.followup.from.menu</field>
89
<field name="view_type">form</field>
90
<field name="view_mode">form</field>
91
<field name="target">new</field>
94
<menuitem id="menuitem_purchase_order_followup_from_menu"
95
action="action_purchase_order_followup_from_menu"
97
parent="base.next_id_73" />