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

« back to all changes in this revision

Viewing changes to sales_followup/sale_followup_view.xml

  • Committer: Quentin THEURET
  • Date: 2016-03-04 12:15:00 UTC
  • Revision ID: qt@tempo-consulting.fr-20160304121500-u2ay8zrf83ih9fu3
US-826 [IMP] Change the way to check if products is not consistent on add multiple line wizard

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
                </form>
57
57
            </field>
58
58
        </record>-->
 
59
 
 
60
        <record id="sale_order_followup_split_progress_view" model="ir.ui.view">
 
61
            <field name="name">sale.order.followup.progress.view</field>
 
62
            <field name="model">sale.order.followup</field>
 
63
            <field name="type">form</field>
 
64
            <field name="arch" type="xml">
 
65
                <form string="Order follow up">
 
66
                    <separator colspan="4" string="General Information" />
 
67
                    <field name="order_id" />
 
68
                    <field name="cust_ref" />
 
69
                    <field name="creation_date" />
 
70
                    <field name="state" />
 
71
                    <separator colspan="4" string="Associated documents" />
 
72
                    <field name="requested_date" />
 
73
                    <field name="confirmed_date" />
 
74
                    <field name="line_ids" colspan="4" nolabel="1">
 
75
                        <tree string="Order follow up lines">
 
76
                            <field name="original_order_id" />
 
77
                            <field name="line_number" />
 
78
                            <field name="product_id" />
 
79
                            <field name="procure_method" />
 
80
                            <field name="po_cft" />
 
81
                            <field name="qty_ordered" />
 
82
                            <field name="uom_id" />
 
83
                            <field name="sourced_ok" />
 
84
                            <field name="tender_status" />
 
85
                            <!--<field name="quotation_status" />-->
 
86
                            <field name="purchase_status" />
 
87
                            <field name="incoming_status" />
 
88
                            <field name="product_available" />
 
89
                            <field name="outgoing_status" />
 
90
                        </tree>
 
91
                    </field>
 
92
                    <separator colspan="4" />
 
93
                    <group colspan="4" col="6">
 
94
                        <button special="cancel" string="Close" icon="gtk-cancel" colspan="2" />
 
95
                        <button name="update_followup" string="Update" icon="gtk-execute" colspan="2" type="object" />
 
96
                        <newline />
 
97
                        <button name="export_xls" string="Export Excel" icon="gtk-execute" colspan="2" type="object" />
 
98
                        <button name="export_pdf" string="Export PDF" icon="gtk-execute" colspan="2" type="object" />
 
99
                    </group>
 
100
                </form>
 
101
            </field>
 
102
        </record>
59
103
        
60
104
        <record id="sale_order_followup_progress_view" model="ir.ui.view">
61
105
            <field name="name">sale.order.followup.progress.view</field>
92
136
                    <group colspan="4" col="6">
93
137
                        <button special="cancel" string="Close" icon="gtk-cancel" colspan="2" />
94
138
                        <button name="update_followup" string="Update" icon="gtk-execute" colspan="2" type="object" />
 
139
                        <newline />
 
140
                        <button name="export_xls" string="Export Excel" icon="gtk-execute" colspan="2" type="object" />
 
141
                        <button name="export_pdf" string="Export PDF" icon="gtk-execute" colspan="2" type="object" />
95
142
                    </group>
96
143
                </form>
97
144
            </field>
103
150
            <field name="type">tree</field>
104
151
            <field name="arch" type="xml">
105
152
                <tree string="Order follow up lines">
 
153
                    <field name="original_order_id" />
106
154
                    <field name="line_number" />
107
155
                    <field name="product_id" />
108
 
             <field name="procure_method" />
109
 
            <field name="po_cft" />
 
156
                    <field name="procure_method" />
 
157
                    <field name="po_cft" />
110
158
                    <field name="qty_ordered" />
111
159
                    <field name="uom_id" />
112
160
                    <field name="sourced_ok" />
138
186
                    <field name="qty_ordered" />
139
187
                    <field name="procure_method" />
140
188
                    <field name="po_cft" />
 
189
                    <field name="original_order_id" attrs="{'invisible': [('original_order_id', '=', False)]}" />
141
190
                    <separator colspan="4" string="Associated documents" />
142
191
                    <field name="tender_ids" nolabel="1" string="Tenders" colspan="4">
143
192
                        <tree string="Tender" colors="green:state in ('done');grey: state in ('cancel')">
238
287
                <form string="Choose a Sale Order">
239
288
                    <separator colspan="4" string="Select Sale Order" />
240
289
                <field name="order_id" 
241
 
                                       attrs="{'readonly': [('cust_order_id', '!=', False)], 'required': [('cust_order_id', '=', False)]}" 
 
290
                    attrs="{'readonly': [('cust_order_id', '!=', False)], 'required': [('cust_order_id', '=', False)]}" 
 
291
                    domain="[('state', '!=', 'draft')]"
 
292
                    context="{'active_test': False}"
242
293
                       on_change="change_order_id(order_id, cust_order_id, 'order_id')"/>
243
294
                    <field name="cust_order_id" 
244
 
                                       context="{'from_followup': True}" 
 
295
                                       context="{'from_followup': True, 'active_test': False}" 
245
296
                                       attrs="{'readonly': [('order_id', '!=', False)], 'required': [('cust_order_id', '=', False)]}" 
 
297
                    domain="[('state', '!=', 'draft')]"
246
298
                    on_change="change_order_id(order_id, cust_order_id, 'cust_order_id')" />
247
299
                    <separator colspan="4" string="Actions" />
248
300
                    <button special="cancel" string="Cancel" colspan="2" icon="gtk-cancel" />
261
313
        
262
314
        <menuitem id="menuitem_sale_order_followup_from_menu"
263
315
              action="action_sale_order_followup_from_menu"
264
 
              parent="base.next_id_64" />
 
316
              parent="base.menu_sales"
 
317
              sequence="1" />
 
318
 
265
319
    
266
320
    </data>
267
321
</openerp>