~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to purchase_followup/purchase_followup_view.xml

  • Committer: jf
  • Date: 2012-11-29 13:00:27 UTC
  • mfrom: (1287.9.8 unifield-wm)
  • Revision ID: jfb@tempo-consulting.fr-20121129130027-564r4yns8t5d2v7d
UTP-368 [FIX] Shouldn't be possible to source a non-stockable product to stock in the order sourcing tool (fix unit test)
lp:~unifield-team/unifield-wm/utp-368

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
                                                <field name="line_confirmed_date" />
41
41
                                                <field name="line_shipped_rate" widget="progressbar" />
42
42
                                                <field name="picking_id" />
43
 
                                                <button name="go_to_incoming" type="object" string="View Incoming shipment" icon="terp-stock_zoom" attrs="{'invisible': [('picking_id', '!=', False)]}" />
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" />
50
 
                                        </tree>
51
 
                                </field>
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" />
54
 
                        </form>
55
 
                </field>
56
 
        </record>
57
 
        
58
 
        <record id="purchase_order_followup_split_form_view" model="ir.ui.view">
59
 
                <field name="name">purchase.order.followup.split.form.view</field>
60
 
                <field name="model">purchase.order.followup</field>
61
 
                <field name="type">form</field>
62
 
                <field name="arch" type="xml">
63
 
                        <form string="Purchase Order Followup">
64
 
                                <field name="order_id" readonly="1" />
65
 
                                <field name="supplier_ref" readonly="1" />
66
 
                    <field name="partner_id" readonly="1" />
67
 
                    <field name="order_type" readonly="1" />
68
 
                    <field name="priority" readonly="1" />
69
 
                    <field name="categ" readonly="1" />
70
 
                                <!--<field name="delivery_requested_date" readonly="1" />
71
 
                                <field name="delivery_confirmed_date" readonly="1" />-->
72
 
                                <field name="line_ids" mode="tree" readonly="1" colspan="4" nolabel="1">
73
 
                                        <tree string="Followup lines" colors="orange:return_move==True">
74
 
                                                <field name="order_id" />
75
 
                                                <field name="line_name" />
76
 
                                                <field name="line_product_id" />
77
 
                                                <field name="line_product_qty" />
78
 
                                                <field name="line_uom_id" />
79
 
                                                <field name="line_confirmed_date" />
80
 
                                                <field name="line_shipped_rate" widget="progressbar" />
81
 
                                                <field name="picking_id" />
82
 
                                                <button name="go_to_incoming" type="object" string="View Incoming shipment" icon="terp-stock_zoom" attrs="{'invisible': [('picking_id', '!=', False)]}" />
 
43
                                                <button name="go_to_incoming" type="object" string="View Incoming shipment" icon="terp-stock_zoom" />
83
44
                                                <field name="move_product_id" />
84
45
                                                <field name="move_product_qty" />
85
46
                                                <field name="move_uom_id" />
103
64
                    <separator colspan="4" string="Select Purchase Order" />
104
65
                    <field name="order_id" 
105
66
                           attrs="{'readonly': ['|', ('cust_order_id', '!=', False), ('incoming_id', '!=', False)], 'required': [('cust_order_id', '=', False), ('incoming_id', '=', False)]}" 
106
 
                           context="{'active_test': False}"
107
 
                           domain="[('rfq_ok', '=', False), ('state', 'in', ['sourced', 'confirmed_wait', 'split', 'approved', 'done', 'except_picking', 'except_invoice'])]"
 
67
                           domain="[('rfq_ok', '=', False), ('state', 'in', ['approved', 'done', 'except_picking', 'except_invoice'])]"
108
68
                           on_change="change_order_id(order_id, cust_order_id, incoming_id, 'order_id')"/>
109
69
                    <field name="cust_order_id" 
110
 
                           context="{'from_followup': True, 'active_test': False}" 
 
70
                           context="{'from_followup': True}" 
111
71
                           attrs="{'readonly': ['|', ('order_id', '!=', False), ('incoming_id', '!=', False)], 'required': [('order_id', '=', False), ('incoming_id', '=', False)]}" 
112
 
                           domain="[('rfq_ok', '=', False), ('state', 'in', ['sourced', 'confirmed_wait', 'split', 'approved', 'done', 'except_picking', 'except_invoice'])]"
 
72
                           domain="[('rfq_ok', '=', False), ('state', 'in', ['approved', 'done', 'except_picking', 'except_invoice'])]"
113
73
                           on_change="change_order_id(order_id, cust_order_id, incoming_id, 'cust_order_id')" />
114
74
                    <field name="incoming_id" 
115
75
                           context="{'from_followup': True}"